Skip to content

Commit 73d5628

Browse files
beemanfilipesilva
authored andcommitted
fix(webpack): remove usage of fallbackLoader and loader (#4435)
1 parent c889dd8 commit 73d5628

File tree

1 file changed

+2
-2
lines changed
  • packages/@angular/cli/models/webpack-configs

1 file changed

+2
-2
lines changed

packages/@angular/cli/models/webpack-configs/styles.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
9797
if (globalStylePaths.length > 0) {
9898
rules.push(...baseRules.map(({test, loaders}) => ({
9999
include: globalStylePaths, test, loaders: ExtractTextPlugin.extract({
100-
loader: [
100+
use: [
101101
// css-loader doesn't support webpack.LoaderOptionsPlugin properly,
102102
// so we need to add options in its query
103103
`css-loader?${JSON.stringify({ sourceMap: cssSourceMap })}`,
104104
...commonLoaders,
105105
...loaders
106106
],
107-
fallbackLoader: 'style-loader',
107+
fallback: 'style-loader',
108108
// publicPath needed as a workaround https://github.com/angular/angular-cli/issues/4035
109109
publicPath: ''
110110
})

0 commit comments

Comments
 (0)