enrty 传入数组时,不报错,但是传对象就报错
const path = require('path');
module.exports = {
//entry:['./src/script/main.js','./src/script/a.js'],
entry:{
main:'./src/script/main.js',
a:'./src/script/a.js'
}
output:{
path:path.resolve(__dirname,'dist/js'),
//filename:'bundle.js'
filename:'[name].js'
}
}