var webpack = require('webpack');var config = { entry:{ 'index' : ['./src/page/index/index.js'], 'login' : ['./src/page/login/index.js'], }, output: { path: __dirname +"/dist", filename:'js/[name].js' } externals : { 'jquery' : 'window.jQuery' }, plugins: [ new webpack.optimize.CommonsChunkPlugin({ name : 'commins', filename : 'js/base.js' }); ]};module.exports = config;打包没有报错 当相应的base文件没有创建出来
2 回答

- 2 回答
- 0 关注
- 923 浏览
添加回答
举报
0/150
提交
取消