问题描述
我对vue.config.js
中的webpack配置感到非常满意,但是我对开发服务器有这种奇怪的行为:主要的供应商文件名为“ node_vendors”(见下文),但是当我执行vue-cli-service serve
时,最终以chunk_vendors.js
结尾,我不明白为什么
这是正常现象吗?我是否错过了配置中的某些内容?
非常感谢!
cacheGroups: {
vendor: {
name: 'node_vendors',// Modules inside ((?!(foo|bar).*) are excluded
test: new RegExp(
`[\\\\/]node_modules[\\\\/]((?!(${excludedFromCommonvendor.join(
'|'
)})).*)[\\\\/]`
),chunks: 'all'
},
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)