entry:{
main:'./src/main.js',
a:'./src/script/a.js'
}
output:{
path:path.resolve(_dirname,'./dist/js'),
filename:'[name].js'
已解决