Skip to content

Instantly share code, notes, and snippets.

@karlwestin
Created October 12, 2016 16:01
Show Gist options
  • Save karlwestin/960806ad9c2f436edf710d37e590557e to your computer and use it in GitHub Desktop.
Save karlwestin/960806ad9c2f436edf710d37e590557e to your computer and use it in GitHub Desktop.
Make webpack dev server more quiet
var webpack = require('webpack')
var WebpackDevServer = require('webpack-dev-server')
var config = require('./webpack.dev')
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
inline: true,
historyApiFallback: true,
// It suppress error shown in console, so it has to be set to false.
quiet: false,
// It suppress everything except error, so it has to be set to false as well
// to see success build.
noInfo: false,
stats: {
// Config for minimal console.log mess.
assets: false,
colors: true,
version: false,
hash: false,
timings: false,
chunks: false,
chunkModules: false
}
}).listen(3000, '0.0.0.0', function (err, result) {
if (err) {
console.log(err)
}
console.log('Listening at 0.0.0.0:3000')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment