Skip to content

Commit

Permalink
[fix] drop webpack deprecated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Oct 15, 2020
1 parent ffe4560 commit f099cf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions packages/xarc-app-dev/src/lib/dev-admin/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,14 @@ class Middleware {

config.plugins = [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin()
].concat(config.plugins);
new webpack.NoEmitOnErrorsPlugin(),
options.progress !== false && new webpack.ProgressPlugin({ profile: options.progressProfile })
]
.concat(config.plugins)
.filter(x => x);

const compiler = webpack(config);

if (options.progress !== false) {
compiler.apply(new webpack.ProgressPlugin({ profile: options.progressProfile }));
}

const webpackDevOptions = _.merge(
{
// https: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/xarc-webpack/src/plugins/done-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class DonePlugin {
}

apply(compiler) {
compiler.plugin("done", () => {
compiler.hooks.done.tap("DonePlugin", () => {
this._func();
});
}
Expand Down

0 comments on commit f099cf4

Please sign in to comment.