报错:"Chunk.entry was removed. Use hasRuntime()"
代码:
const path = require('path');
const webpack = require('webpack');
let config = {
entry: {
"index" : ["./src/page/index/index.js"],
'login' : ['./src/page/login/index.js']
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'js/[name].js'
},
externals : {
'jquery' : 'window.jQuery'
},
plugins : [
new webpack.optimize.CommonsChunkPlugin({
name : 'commons',
filename : 'js/base.js'
})
]
};
module.exports = config ;
似乎配置并没有错