vant/build/webpack.build.min.js
2017-01-16 02:48:57 +08:00

20 lines
359 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