angular-cn/aio/tools/cli-patches/uglify-config.patch

12 lines
665 B
Diff

--- node_modules/@angular/cli/models/webpack-configs/production.js 2017-05-24 15:36:43.000000000 -0700
+++ node_modules/@angular/cli/models/webpack-configs/production.js 2017-05-24 15:37:04.000000000 -0700
@@ -82,7 +82,7 @@
new (require("purify/purify-webpack-plugin"))(),
new webpack.optimize.UglifyJsPlugin({
mangle: { screw_ie8: true },
- compress: { screw_ie8: true, warnings: buildOptions.verbose },
+ compress: { screw_ie8: true, warnings: buildOptions.verbose, pure_getters: true },
sourceMap: buildOptions.sourcemaps,
comments: false
})