Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Update build executable to respect config stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaridmargolin committed Apr 4, 2017
1 parent 230fdf1 commit 9eca5e2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/neutrino/bin/build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { build } = require('../src');
const { defaultTo } = require('ramda');
const ora = require('ora');

module.exports = (middleware, options) => {
Expand All @@ -14,10 +15,13 @@ module.exports = (middleware, options) => {
process.exit(1);
}, (stats) => {
spinner.succeed('Building project completed');
console.log(stats.toString({

const options = defaultTo({
colors: true,
chunks: false,
children: false
}));
}, stats.compilation.compiler.options.stats);

console.log(stats.toString(options));
});
};

0 comments on commit 9eca5e2

Please sign in to comment.