What is proper way to set up chainWebpack
or configureWebpack
in plugins?
#803
-
As the migration notes for plugin authors points out, Webpack related hooks are now removed and it is suggested you modify I understand that and it works for a single plugin, but setting this directly will cause multiple instances (or just multiple plugins using this approach) to stomp on each other, and only the last one wins. Am I missing an approach to avoid this problem? Suggestions? Thanks for your help. Josh |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Oh, I think I understand what you mean,once a plugin is added with options, you probably can not read the original options or modify that, but you can still remove that plugin and add the same plugin with options you like. So try avoid using some bundler plugins if you have workaround (e.g. you may convert svg to a standard Vue component, so that you can avoid using We have plans improving bundler config (probably with a new option) |
Beta Was this translation helpful? Give feedback.
-
In latest version, you could handle it via extendsBundlerOptions hook |
Beta Was this translation helpful? Give feedback.
In latest version, you could handle it via extendsBundlerOptions hook