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'
}
}
有滴呀 视频上也讲了呀
entry只有两种形式,可以是个string也可以是个数组,就是没有键值对的对象