You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function buildWebpack(done) {
if (CLIOptions.hasFlag('watch')) {
compiler.watch({}, onBuild);
} else {
compiler.run(onBuild);
//compiler.plugin('done', () => done()); // Tapable.plugin is deprecated. Use new API on `.hooks` instead
compiler.hooks.done.tap('done', () => done());
}
}
This removes the deprecation warning. Sorry I can't offer a PR, but I know little about webpack internals or the aurelia-cli -- I just dug enough to fix this issue. Again, I think this only rears its ugly head with webpack 4.x
The text was updated successfully, but these errors were encountered:
oising
changed the title
Tapable.plugin is deprecated. Use new API on .hooks instead (webpack 4.x)
Tapable.plugin is deprecated. Use new API on .hooks instead (au build / webpack 4.x )
Sep 27, 2018
The offending line is:
cli/lib/resources/tasks/build-webpack.ts
Line 26 in c91fb3e
Rewriting as:
This removes the deprecation warning. Sorry I can't offer a PR, but I know little about webpack internals or the aurelia-cli -- I just dug enough to fix this issue. Again, I think this only rears its ugly head with webpack 4.x
The text was updated successfully, but these errors were encountered: