-
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks
instead
#225
Comments
@bfred-it expected behavior, will be fixed in next major, after webpack@4 will be official release |
This will stay for a while since the plugin needs to support |
@michael-ciniawsky in theory we can check on new api and use new api |
This is handled by the compat layer in |
@michael-ciniawsky |
Yep, something like that or a sledgehammers |
Webpack 4 is now available. |
Someone can send PR which feature detects const cb = (...args) => {}
...
if (compiler.hooks) {
const plugin = { name: 'CopyPlugin' }
compiler.hooks.someHook.tap(plugin, cb)
} else {
compiler.plugin('some-hook', cb)
} |
Webpack 4 supported? |
Let's do it in next patch. WIP |
Done #234 |
Released in |
I am getting this issue with version 4.6.0 and webpack 4.27.0. |
I'm using with
copy-webpack-plugin 4.4.1
withwebpack 4.0.0-beta.0
and I get this warning (although it seems to work since #211)The text was updated successfully, but these errors were encountered: