vant/build/webpack.build.min.js
张敏 6331645a51 修复:webpack打包修复 (#21)
* 修复打包逻辑问题
2017-04-26 18:02:19 +08:00

21 lines
353 B
JavaScript

var webpack = require('webpack');
var config = require('./webpack.build.js');
config.entry = {
'index': './src/index.js'
};
config.plugins = config.plugins.concat([
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
},
output: {
comments: false
},
sourceMap: false
})
]);
module.exports = config;