Skip to content

Commit ef55984

Browse files
ooflorentSpaceK33z
authored andcommitted
Remove Tapable#apply calls (#1331)
1 parent f2db057 commit ef55984

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/webpack-dev-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,9 @@ function startDevServer(webpackOptions, options) {
386386
}
387387

388388
if (options.progress) {
389-
compiler.apply(new webpack.ProgressPlugin({
389+
new webpack.ProgressPlugin({
390390
profile: argv.profile
391-
}));
391+
}).apply(compiler);
392392
}
393393

394394
const suffix = (options.inline !== false || options.lazy === true ? '/' : '/webpack-dev-server/');

lib/Server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function Server(compiler, options, _log) {
6464
if (addInfo) msg = `${msg} (${addInfo})`;
6565
this.sockWrite(this.sockets, 'progress-update', { percent, msg });
6666
});
67-
compiler.apply(progressPlugin);
67+
progressPlugin.apply(compiler);
6868
}
6969

7070
const addCompilerHooks = (comp) => {

0 commit comments

Comments
 (0)