From c817a894513322bb3511e46fbc5b067c997c11e8 Mon Sep 17 00:00:00 2001 From: Matthew Harrison Date: Wed, 16 Nov 2016 16:49:01 -0800 Subject: [PATCH] Production Build is Breaking Angular -Set keep_fnames: true fixes the issue. Found the solutions here: https://github.com/mishoo/UglifyJS2/issues/999 https://github.com/angular/angular/issues/10618#issuecomment-243532360 --- packages/angular-cli/models/webpack-build-production.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular-cli/models/webpack-build-production.ts b/packages/angular-cli/models/webpack-build-production.ts index e925035a7395..96c7f5a9f30f 100644 --- a/packages/angular-cli/models/webpack-build-production.ts +++ b/packages/angular-cli/models/webpack-build-production.ts @@ -57,7 +57,7 @@ export const getWebpackProdConfigPartial = function(projectRoot: string, appConf 'process.env.NODE_ENV': JSON.stringify('production') }), new webpack.optimize.UglifyJsPlugin({ - mangle: { screw_ie8 : true }, + mangle: { screw_ie8 : true, keep_fnames: true }, compress: { screw_ie8: true }, sourceMap: true }),