vant/build/webpack.build.min.js
2017-02-26 13:34:49 +08:00

21 lines
420 B
JavaScript

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