diff --git a/package.json b/package.json index 6666d65cd5778e1691b24fcab046f1505b907709..08232d3d30d9d7914b8edf31327e314f370f1aa5 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "stylus-loader": "3.0.1", "swagger-jsdoc": "1.9.4", "tslint": "5.2.0", - "uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#8f4b45f4f814c04918382949b4bcaf7a8d910281", + "uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony", "webpack": "2.5.1" }, "dependencies": { diff --git a/webpack/plugins/index.ts b/webpack/plugins/index.ts index 0692b9f8dd78ae818fec085623a361d317869d2d..1f46247eeaab34c963bc645812f34c74a5006886 100644 --- a/webpack/plugins/index.ts +++ b/webpack/plugins/index.ts @@ -1,3 +1,4 @@ +import * as webpack from 'webpack'; const StringReplacePlugin = require('string-replace-webpack-plugin'); import constant from './const'; @@ -12,7 +13,7 @@ export default () => { ]; if (isProduction) { - //plugins.push(new webpack.optimize.UglifyJsPlugin()); + plugins.push(new webpack.optimize.UglifyJsPlugin()); } return plugins;