Skip to content

Commit 7e89442

Browse files
ryanwholeyshellscape
authored andcommitted
enable progress from config (#1181)
1 parent e8964d1 commit 7e89442

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/webpack-dev-server.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ function processOptions(webpackOptions) {
247247

248248
if (argv.socket) { options.socket = argv.socket; }
249249

250+
if (argv.progress) { options.progress = argv.progress; }
251+
250252
if (!options.publicPath) {
251253
// eslint-disable-next-line
252254
options.publicPath = firstWpOpt.output && firstWpOpt.output.publicPath || '';
@@ -368,7 +370,7 @@ function startDevServer(webpackOptions, options) {
368370
throw e;
369371
}
370372

371-
if (argv.progress) {
373+
if (options.progress) {
372374
compiler.apply(new webpack.ProgressPlugin({
373375
profile: argv.profile
374376
}));
@@ -445,7 +447,8 @@ function reportReadiness(uri, options) {
445447
if (options.socket) {
446448
startSentence = `Listening to socket at ${colorInfo(useColor, options.socket)}`;
447449
}
448-
console.log((argv.progress ? '\n' : '') + startSentence);
450+
451+
console.log((options.progress ? '\n' : '') + startSentence);
449452

450453
console.log(`webpack output is served from ${colorInfo(useColor, options.publicPath)}`);
451454

0 commit comments

Comments
 (0)