From 1220683276dd9eb2f2719aece7f40bf2ffb397b4 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sun, 18 Sep 2016 11:52:58 +0300 Subject: [PATCH] Update webpack-dev-server and add clientLogLevel option --- package.json | 2 +- scripts/start.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index fe046b5e54d..799daa8f663 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "style-loader": "0.13.1", "url-loader": "0.5.7", "webpack": "1.13.2", - "webpack-dev-server": "1.15.2", + "webpack-dev-server": "1.16.0", "whatwg-fetch": "1.0.0" }, "devDependencies": { diff --git a/scripts/start.js b/scripts/start.js index c285dc50e32..42ea112c053 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -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