From c636daf6c2b55d2d26df2c59ecb921a3d8eb1ac8 Mon Sep 17 00:00:00 2001 From: Job Date: Wed, 22 Nov 2017 11:11:02 +0100 Subject: [PATCH] fix(@angular/cli): pass sourceMap to postcss This is required per https://github.com/postcss/postcss-loader#sourcemap Closes #8588 --- packages/@angular/cli/models/webpack-configs/styles.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/@angular/cli/models/webpack-configs/styles.ts b/packages/@angular/cli/models/webpack-configs/styles.ts index da05db9796c1..122be05274a3 100644 --- a/packages/@angular/cli/models/webpack-configs/styles.ts +++ b/packages/@angular/cli/models/webpack-configs/styles.ts @@ -177,7 +177,8 @@ export function getStylesConfig(wco: WebpackConfigOptions) { options: { // A non-function property is required to workaround a webpack option handling bug ident: 'postcss', - plugins: postcssPluginCreator + plugins: postcssPluginCreator, + sourceMap: cssSourceMap } } ];