大家好,我是架构君,一个会写代码吟诗的架构师。今天说一说can't load the language file_no encoding declared,希望能够帮助大家进步!!!
解决 Multiple chunks emit assets to the same filename 错误
问题描述:webpack打包多文件入口时,出现错误
ERROR in chunk module entry
./js/build.js
Conflict: Multiple chunks emit assets to the same filename ./js/build.js (chunks
0 and 1)
问题原因:多文件入口,只指定了一个输出文件名
entry: {
main: './src/js/main.js',
module: './src/js/module.js'
},
output: {
filename: './js/build.js',
path: resolve(\_\_dirname, 'build')
}
解决方案:每个需要打包的文件根据文件名打包输出
output: {
filename: './js/[name].js',
path: resolve(\_\_dirname, 'build')
}
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有