File tree 1 file changed +6
-1
lines changed
packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,12 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
236
236
rules . push ( ...baseRules . map ( ( { test, use } ) => {
237
237
const extractTextPlugin = {
238
238
use : [
239
- { loader : RawCssLoader } ,
239
+ // style-loader still has issues with relative url()'s with sourcemaps enabled;
240
+ // even with the convertToAbsoluteUrls options as it uses 'document.location'
241
+ // which breaks when used with routing.
242
+ // Once style-loader 1.0 is released the following conditional won't be necessary
243
+ // due to this 1.0 PR: https://github.com/webpack-contrib/style-loader/pull/219
244
+ { loader : buildOptions . extractCss ? RawCssLoader : 'raw-loader' } ,
240
245
{
241
246
loader : 'postcss-loader' ,
242
247
options : {
You can’t perform that action at this time.
0 commit comments