Skip to content

Commit 4e569e5

Browse files
authored
fix(@angular-devkit/build-angular): load component source maps inline so they work
without this, the way styles are into the DOM breaks the default sourcemap option postcss-loader option docs https://github.com/postcss/postcss-loader#inline fixes #9099
1 parent 84ec302 commit 4e569e5

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/styles.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
267267
options: {
268268
ident: buildOptions.extractCss ? 'extracted' : 'embedded',
269269
plugins: postcssPluginCreator,
270-
sourceMap: cssSourceMap
270+
sourceMap: cssSourceMap ? 'inline' : false
271271
}
272272
},
273273
...(use as webpack.Loader[])

0 commit comments

Comments
 (0)