Dev: Update webpack config

This commit is contained in:
surunzi
2016-06-11 19:46:26 +08:00
parent 3a6a9af50d
commit 691f186312
6 changed files with 44 additions and 21 deletions

17
script/release.js Normal file
View File

@@ -0,0 +1,17 @@
var webpack = require('webpack');
exports = require('./../webpack.config');
exports.output.filename = 'eruda.min.js';
exports.devtool = false;
exports.plugins = exports.plugins.concat([
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
},
comments: /eruda/
}),
new webpack.optimize.DedupePlugin()
]);
module.exports = exports;