Skip to content

Commit

Permalink
Use non-deprecated webpack 4 API's
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceK33z committed Feb 26, 2018
1 parent 31d94ab commit c32cfa8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Server.js
Expand Up @@ -65,9 +65,9 @@ function Server(compiler, options) {
});
compiler.apply(progressPlugin);
}
compiler.plugin('compile', invalidPlugin);
compiler.plugin('invalid', invalidPlugin);
compiler.plugin('done', (stats) => {
compiler.hooks.compile.tap('webpack-dev-server', invalidPlugin);
compiler.hooks.invalid.tap('webpack-dev-server', invalidPlugin);
compiler.hooks.done.tap('webpack-dev-server', (stats) => {
this._sendStats(this.sockets, stats.toJson(clientStats));
this._stats = stats;
});
Expand Down

0 comments on commit c32cfa8

Please sign in to comment.