From 13afff05a82098ad5d2e56b9c2800bb100352528 Mon Sep 17 00:00:00 2001 From: Joshua Ellis Date: Mon, 23 Jul 2018 13:17:18 +1000 Subject: [PATCH] Patching 1.3 branch with ng build breaking on uglify per 1.5 branch --- packages/@angular/cli/models/webpack-configs/production.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@angular/cli/models/webpack-configs/production.ts b/packages/@angular/cli/models/webpack-configs/production.ts index 7535e7417961..5bcead1cc0b8 100644 --- a/packages/@angular/cli/models/webpack-configs/production.ts +++ b/packages/@angular/cli/models/webpack-configs/production.ts @@ -92,7 +92,7 @@ export const getProdConfig = function (wco: WebpackConfigOptions) { })); } - const uglifyCompressOptions: any = { screw_ie8: true, warnings: buildOptions.verbose }; + const uglifyCompressOptions: any = { screw_ie8: true, warnings: buildOptions.verbose, comparisons: false }; if (buildOptions.buildOptimizer) { // This plugin must be before webpack.optimize.UglifyJsPlugin.