-
Notifications
You must be signed in to change notification settings - Fork 80
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
conflict with add-asset-html-webpack-plugin package #92
Comments
Is this problem has been solved? |
No, I've not had a chance to look at this issue yet @darrell0904 - I would appreciate any PRs! |
在我的项目中我解决了该问题. 该问题的原因是由于, smp在每次webpack插件调用时,
这会导致在某个插件中对hooks添加一个新的hook, 但由于hooks是smp返回的一个新的对象, 对其设置的新的hook在其他的插件都获取不到(不同同一个对象), 因此解决方案是hooks返回原有对象, 不要创建新的对象, 比较小的改动为:
也可以使用
这样就可以在 English is not good. Here is Google translation. I solved the problem in my project. The reason for this problem is that every time SMP calls the webpack plug-in, the "hooks" object in the "compiler" and "compilation" returns a new one, Code:
This will cause a new hook to be added to hooks in a plug-in, but because hooks is a new object returned by SMP, the new hook set to it cannot be obtained by other plug-ins (different from the same object), so the solution is that hooks returns the original object, do not create a new object, the smaller change is
it is recommended to use a 'proxy' proxy
In this way, it can be used in 'vue-cli @ 3', 'vue-cli @ 4', and use 'HTML webpack plugin' series plug-ins |
Is there any plan to fix this problem? |
both use speed-measure and add-asset-html , would cause
i don't know why ,
The text was updated successfully, but these errors were encountered: