admin管理员组文章数量:1279248
I am getting this error
Error:
webpack.optimize.CommonsChunkPlugin
has been removed, please useconfig.optimization.splitChunks
instead.
new webpack.optimize.CommonsChunkPlugin({
filename: DEBUG ? 'bundle.js' : 'bundle.min.js',
name: "vendor"
})
I am getting this error
Error:
webpack.optimize.CommonsChunkPlugin
has been removed, please useconfig.optimization.splitChunks
instead.
new webpack.optimize.CommonsChunkPlugin({
filename: DEBUG ? 'bundle.js' : 'bundle.min.js',
name: "vendor"
})
Share
Improve this question
edited Aug 12, 2021 at 13:20
Penny Liu
17.5k5 gold badges86 silver badges108 bronze badges
asked Apr 4, 2019 at 6:41
Mohit PrakashMohit Prakash
5122 gold badges7 silver badges16 bronze badges
1 Answer
Reset to default 8As the error states, the plugin is deprecated since webpack 4
You should remove it and use a different plugin.
There are plenty of posts where you can find how to do this but here is an example: Webpack 4 migration CommonsChunkPlugin
本文标签:
版权声明:本文标题:javascript - Error: webpack.optimize.CommonsChunkPlugin has been removed, please use config.optimization.splitChunks instead - S 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741254986a2366496.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论