Skip to content

Commit d56a661

Browse files
committed
feat(build): override publicPath for ExtractTextPlugin
1 parent 394aa05 commit d56a661

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/angular-cli/models/webpack-build-utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export function makeCssLoaders(stylePaths: string[] = []) {
8080
include: stylePaths, test, loaders: ExtractTextPlugin.extract({
8181
remove: false,
8282
loader: ['css-loader', ...commonLoaders, ...loaders],
83-
fallbackLoader: 'style-loader'
83+
fallbackLoader: 'style-loader',
84+
// publicPath needed as a workaround https://github.com/angular/angular-cli/issues/4035
85+
publicPath: ''
8486
})
8587
})));
8688
}

0 commit comments

Comments
 (0)