vant/build/webpack.build.min.js
2017-02-26 11:55:16 +08:00

19 lines
364 B
JavaScript

var config = require('./webpack.build.js');
var webpack = require('webpack');
config.output.filename = config.output.filename.replace(/\.js$/, '.min.js');
delete config.devtool;
config.plugins = [
new webpack.optimize.UglifyJsPlugin({
sourceMap: false,
drop_console: true,
compress: {
warnings: false
}
})
];
module.exports = config;