diff --git a/bin/webpack-dev-server.js b/bin/webpack-dev-server.js index 08f473891c..2641e10e00 100755 --- a/bin/webpack-dev-server.js +++ b/bin/webpack-dev-server.js @@ -386,9 +386,9 @@ function startDevServer(webpackOptions, options) { } if (options.progress) { - compiler.apply(new webpack.ProgressPlugin({ + new webpack.ProgressPlugin({ profile: argv.profile - })); + }).apply(compiler); } const suffix = (options.inline !== false || options.lazy === true ? '/' : '/webpack-dev-server/'); diff --git a/lib/Server.js b/lib/Server.js index 4f42d44d9d..7f122e34d6 100644 --- a/lib/Server.js +++ b/lib/Server.js @@ -64,7 +64,7 @@ function Server(compiler, options, _log) { if (addInfo) msg = `${msg} (${addInfo})`; this.sockWrite(this.sockets, 'progress-update', { percent, msg }); }); - compiler.apply(progressPlugin); + progressPlugin.apply(compiler); } const addCompilerHooks = (comp) => {