Created
October 12, 2016 16:01
-
-
Save karlwestin/960806ad9c2f436edf710d37e590557e to your computer and use it in GitHub Desktop.
Make webpack dev server more quiet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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