Skip to content

Commit 46df1c5

Browse files
beemanZhicheng Wang
authored and
Zhicheng Wang
committed
fix(webpack): remove usage of fallbackLoader and loader (angular#4435)
1 parent c691bb0 commit 46df1c5

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

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

0 commit comments

Comments
 (0)