Skip to content

Commit

Permalink
Supress noisy output when errors occur. With these settings, webpack …
Browse files Browse the repository at this point in the history
…will no longer display the list of all bundles when an error occurs, so it's easier to see the actual error.
  • Loading branch information
coryhouse committed Jul 21, 2016
1 parent 8c5a173 commit 0322e74
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions tools/srcServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,18 @@ browserSync({
// Dev middleware can't access config, so we provide publicPath
publicPath: config.output.publicPath,

// pretty colored output
stats: { colors: true },

// Set to false to display a list of each file that is being bundled.
noInfo: true
// These settings suppress noisy webpack output so only errors are displayed to the console.
noInfo: false,
quiet: true,
stats: {
assets: false,
colors: true,
version: false,
hash: false,
timings: false,
chunks: false,
chunkModules: false
},

// for other settings see
// http://webpack.github.io/docs/webpack-dev-middleware.html
Expand Down

0 comments on commit 0322e74

Please sign in to comment.