Skip to content

Commit 30cfb2e

Browse files
Mandurohansl
authored andcommitted
fix(@angular/cli): pass sourceMap to postcss
This is required per https://github.com/postcss/postcss-loader#sourcemap Closes #8588
1 parent c4f880c commit 30cfb2e

File tree

1 file changed

+2
-1
lines changed
  • packages/@angular/cli/models/webpack-configs

1 file changed

+2
-1
lines changed

packages/@angular/cli/models/webpack-configs/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
172172
options: {
173173
// A non-function property is required to workaround a webpack option handling bug
174174
ident: 'postcss',
175-
plugins: postcssPluginCreator
175+
plugins: postcssPluginCreator,
176+
sourceMap: cssSourceMap
176177
}
177178
}
178179
];

0 commit comments

Comments
 (0)