Skip to content

Commit

Permalink
Remove Tapable#apply calls (#1331)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooflorent authored and SpaceK33z committed Mar 2, 2018
1 parent f2db057 commit ef55984
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/webpack-dev-server.js
Expand Up @@ -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/');
Expand Down
2 changes: 1 addition & 1 deletion lib/Server.js
Expand Up @@ -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) => {
Expand Down

0 comments on commit ef55984

Please sign in to comment.