mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Dev: Update webpack config
This commit is contained in:
17
script/release.js
Normal file
17
script/release.js
Normal 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;
|
||||
Reference in New Issue
Block a user