mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
build config
This commit is contained in:
10
build/webpack.build.min.js
vendored
10
build/webpack.build.min.js
vendored
@@ -3,13 +3,15 @@ var webpack = require('webpack');
|
||||
|
||||
config.output.filename = config.output.filename.replace(/\.js$/, '.min.js');
|
||||
|
||||
delete config.devtool;
|
||||
|
||||
config.plugins = [
|
||||
new webpack.LoaderOptionsPlugin({
|
||||
minimize: true,
|
||||
debug: false
|
||||
}),
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
sourceMap: false,
|
||||
drop_console: true,
|
||||
comments: false,
|
||||
compress: {
|
||||
drop_console: true,
|
||||
warnings: false
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user