我用的是webpack2.0
entry:{
main:'./src/script/main.js',
a1: './src/script/a1.js'
},
这样写就好了。。。webapck2.0的写法
你这样不会报错吗?
TypeError: Path must be a string. Received [ './src/script/main.js', './src/script/a.js' ]
可以直接用数组entry
entry:['./src/script/main.js','./src/script/a.js'],