Update webpack-dev-server and add clientLogLevel option

This commit is contained in:
Dan Abramov
2016-09-18 11:52:58 +03:00
parent 801c20028f
commit 1220683276
2 changed files with 4 additions and 1 deletions

View File

@@ -251,6 +251,9 @@ function addMiddleware(devServer) {
function runDevServer(port, protocol) {
var devServer = new WebpackDevServer(compiler, {
// Silence WebpackDevServer's own logs since they're generally not useful.
// It will still show compile warnings and errors with this setting.
clientLogLevel: 'none',
// By default WebpackDevServer also serves files from the current directory.
// This might be useful in legacy apps. However we already encourage people
// to use Webpack for importing assets in the code, so we don't need to