Skip to content
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

fix: 修复 webpack v4+ 废弃 API warning #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

weiliang903
Copy link

在 webpack v4+ 版本中使用,会出现一个 warning:

(node:43810) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead

解决方案:
在 v4+ 版本使用新的方式 compiler.hooks.emit.tapAsync

@weiliang903
Copy link
Author

仅更改了调用兼容方式

截屏2021-08-25 16 14 05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant