From 669e7cbe406e5e0c5a3a2595adc57192ef28110a Mon Sep 17 00:00:00 2001 From: laco0416 Date: Wed, 5 Oct 2016 00:29:05 +0900 Subject: [PATCH] fix(build): fix sourcemap in prod --- packages/angular-cli/models/webpack-build-production.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/angular-cli/models/webpack-build-production.ts b/packages/angular-cli/models/webpack-build-production.ts index d1c7b24b1a45..52256fe7fb5b 100644 --- a/packages/angular-cli/models/webpack-build-production.ts +++ b/packages/angular-cli/models/webpack-build-production.ts @@ -16,7 +16,8 @@ export const getWebpackProdConfigPartial = function(projectRoot: string, appConf new WebpackMd5Hash(), new webpack.optimize.UglifyJsPlugin({ mangle: { screw_ie8 : true }, - compress: { screw_ie8: true } + compress: { screw_ie8: true }, + sourceMap: true }), new CompressionPlugin({ asset: '[path].gz[query]',