vue cli npm run build打生产环境包报错Cannot read property ‘pop‘ of undefined

vue cli npm run build打生产环境包报错Cannot read property ‘pop‘ of undefined_第1张图片

问题出在webpack配置的代码拆分splitChunks

解决办法:每个cacheGroups中配置enforce: true;

vue cli npm run build打生产环境包报错Cannot read property ‘pop‘ of undefined_第2张图片

你可能感兴趣的:(菜鸟的踩坑之旅,vue.js,npm,前端)