|
阅读:8718回复:0
[其它]webpack bug:Conflict: Multiple chunks emit assets to the same filename index.js (chunks 0 and 1)
webpack入口文件时,使用json对象指定入口文件,如下:
entry: {
page1:"./src/index.js",
page2:"./src/index2.js"
},
//出口
output: {
filename: './index.js'
},
mode:"production"错误:ERROR in chunk page2 [entry] index.js Conflict: Multiple chunks emit assets to the same filename index.js (chunks 0 and 1) 解决方案: output:{
path:path.resolve(__dirname,'dist'),
filename:'[name].js'
} |
|
|