We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c889dd8 commit 73d5628Copy full SHA for 73d5628
packages/@angular/cli/models/webpack-configs/styles.ts
@@ -97,14 +97,14 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
97
if (globalStylePaths.length > 0) {
98
rules.push(...baseRules.map(({test, loaders}) => ({
99
include: globalStylePaths, test, loaders: ExtractTextPlugin.extract({
100
- loader: [
+ use: [
101
// css-loader doesn't support webpack.LoaderOptionsPlugin properly,
102
// so we need to add options in its query
103
`css-loader?${JSON.stringify({ sourceMap: cssSourceMap })}`,
104
...commonLoaders,
105
...loaders
106
],
107
- fallbackLoader: 'style-loader',
+ fallback: 'style-loader',
108
// publicPath needed as a workaround https://github.com/angular/angular-cli/issues/4035
109
publicPath: ''
110
})
0 commit comments