Skip to content

Commit

Permalink
fix(index): do not use style loader when extracting
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani committed Jul 2, 2016
1 parent 71af616 commit eacea10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export = function css({ filename = '[name].css', allChunks = false, sourceMap =
module: {
loaders: get(this, 'module.loaders', []).concat([{
test: /\.css$/i,
loaders: extractCss ? extractText.extract(...loaders) : loaders
loaders: extractCss ? extractText.extract(...loaders.slice(1)) : loaders
}])
}
} as WebpackConfig
Expand Down

0 comments on commit eacea10

Please sign in to comment.