Skip to content

Commit

Permalink
fix(webpack): remove usage of fallbackLoader and loader (#4435)
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman authored and filipesilva committed Feb 6, 2017
1 parent c889dd8 commit 73d5628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@angular/cli/models/webpack-configs/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
if (globalStylePaths.length > 0) {
rules.push(...baseRules.map(({test, loaders}) => ({
include: globalStylePaths, test, loaders: ExtractTextPlugin.extract({
loader: [
use: [
// css-loader doesn't support webpack.LoaderOptionsPlugin properly,
// so we need to add options in its query
`css-loader?${JSON.stringify({ sourceMap: cssSourceMap })}`,
...commonLoaders,
...loaders
],
fallbackLoader: 'style-loader',
fallback: 'style-loader',
// publicPath needed as a workaround https://github.com/angular/angular-cli/issues/4035
publicPath: ''
})
Expand Down

0 comments on commit 73d5628

Please sign in to comment.