Skip to content

Commit 00e8500

Browse files
committed
updating deps and patching as necessary
1 parent 082ddae commit 00e8500

File tree

6 files changed

+2033
-616
lines changed

6 files changed

+2033
-616
lines changed

bin/webpack-dev-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ require('webpack/bin/config-yargs')(yargs);
5555

5656
// It is important that this is done after the webpack yargs config,
5757
// so it overrides webpack's version info.
58-
yargs.version(versionInfo);
58+
yargs.version(versionInfo());
5959

6060
const ADVANCED_GROUP = 'Advanced options:';
6161
const DISPLAY_GROUP = 'Stats options:';

lib/Server.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,16 @@ function Server(compiler, options) {
8080
res.send('Invalid Host header');
8181
});
8282

83+
const wdmOptions = {};
84+
85+
if (options.quiet === true) {
86+
wdmOptions.logLevel = 'silent';
87+
}
88+
if (options.noInfo === true) {
89+
wdmOptions.logLevel = 'warn';
90+
}
8391
// middleware for serving webpack bundle
84-
this.middleware = webpackDevMiddleware(compiler, options);
92+
this.middleware = webpackDevMiddleware(compiler, Object.assign({}, options, wdmOptions));
8593

8694
app.get('/__webpack_dev_server__/live.bundle.js', (req, res) => {
8795
res.setHeader('Content-Type', 'application/javascript');

0 commit comments

Comments
 (0)