Dev: Move webpack config to script folder

This commit is contained in:
surunzi
2016-10-25 16:57:12 +08:00
parent f0b3cfe33c
commit 587d3d3683
3 changed files with 5 additions and 5 deletions

17
script/webpack.release.js Normal file
View File

@@ -0,0 +1,17 @@
var webpack = require('webpack');
exports = require('./webpack.dev');
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;