File tree 1 file changed +4
-2
lines changed
packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
244
244
options : {
245
245
ident : 'embedded' ,
246
246
plugins : postcssPluginCreator ,
247
- sourceMap : cssSourceMap
247
+ sourceMap : cssSourceMap ? 'inline' : false
248
248
}
249
249
} ,
250
250
...( use as webpack . Loader [ ] )
@@ -267,7 +267,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
267
267
options : {
268
268
ident : buildOptions . extractCss ? 'extracted' : 'embedded' ,
269
269
plugins : postcssPluginCreator ,
270
- sourceMap : cssSourceMap
270
+ sourceMap : cssSourceMap && ! buildOptions . extractCss ? 'inline' : cssSourceMap
271
271
}
272
272
} ,
273
273
...( use as webpack . Loader [ ] )
@@ -300,6 +300,8 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
300
300
}
301
301
302
302
return {
303
+ // Workaround stylus-loader defect: https://github.com/shama/stylus-loader/issues/189
304
+ loader : { stylus : { } } ,
303
305
entry : entryPoints ,
304
306
module : { rules } ,
305
307
plugins : [ ] . concat ( extraPlugins as any )
You can’t perform that action at this time.
0 commit comments