var webpack = require('webpack');var config = {entry: {'index' : ['./src/page/index/index.js'],'login' : ['./src/page/login/login.js']},output: {path: __dirname + '/dist',filename: 'js/[name].js'},externals : {'jquery' : 'window.jQuery'},plugins: [new webpack.optimize.CommonsChunkPlugin({name : 'commons',filename : 'js/base.js'}),]};module.exports = config;
- 1 回答
- 0 关注
- 1165 浏览
添加回答
举报
0/150
提交
取消