Feature to document
Tapable new API .hooks
Additional information
(node:10572) DeprecationWarning: Tapable.plugin is deprecated. Use new API on
.hooksinstead
All Internet search results only show answers for:
Q: My app broke, please help.
A: Upgrade a webpack plugin from v1 to v2.
As a plugin ~author~ heir, where do I find docs on the upgrade process?
Looks like the hooks first appeared with this PR https://github.com/webpack/tapable/pull/37, which is massive and makes it difficult to extract the relevant bits of info.
Hi @givanse
I had a great reference for you, but it is somewhere in webpack/webpack repo pull requests, still trying to find. We were migrating some of the tests onto hooks and you could see how we did that from those PRs.
Can you also link to code where you use tapable
Unfortunately the code is not publicly available and I can't share it.
Is there any documentation?
Most helpful comment
Okay, this can help i hope:
https://github.com/webpack/webpack/pull/6166/files
https://github.com/webpack/webpack/pull/6164/files
https://github.com/webpack/webpack/pull/6136/files
https://github.com/webpack/webpack/pull/6148/files