build config

This commit is contained in:
cookfront
2017-02-26 11:55:16 +08:00
parent e9a105b76d
commit 7bfc4f4323
28 changed files with 93 additions and 94 deletions

View File

@@ -1,10 +1,9 @@
var config = require('./webpack.build.js')
var webpack = require('webpack')
var config = require('./webpack.build.js');
var webpack = require('webpack');
config.output.filename = config.output.filename.replace(/\.js$/, '.min.js');
config.output.filename = config.output.filename.replace(/\.js$/, '.min.js')
delete config.devtool
delete config.devtool;
config.plugins = [
new webpack.optimize.UglifyJsPlugin({
@@ -14,6 +13,6 @@ config.plugins = [
warnings: false
}
})
]
];
module.exports = config
module.exports = config;