配置 entry 和 output
// 配置 entry 和 output
entry:{
main:'./src/index.js',
// sub:'./src/index.js'
},
output:{
// filename: 'dist.js',
// publicPath:'http:///www.cdn.com', // js 前缀
filename: '[name].js',
path:path.resolve(__dirname,'dist')
},