Skip to content

Commit

Permalink
fix(index): update syntax to match latest rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani authored Jan 28, 2017
1 parent 5b2f71f commit 14254ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export = function css({ filename = '[name].css', allChunks = false, sourceMap =
if (extractCss) {
extractText = extractTextInstances.get(filename)
if (!extractText) {
extractText = new ExtractTextPlugin(extractText instanceof Object ? extractText : { filename, allChunks, sourceMap })
extractText = new ExtractTextPlugin(extractText instanceof Object ? extractText : { filename, allChunks })
extractTextInstances.set(filename, extractText)
}
} else {
Expand All @@ -42,8 +42,8 @@ export = function css({ filename = '[name].css', allChunks = false, sourceMap =
module: {
rules: get(this, 'module.rules', []).concat([{
test,
loaders: extractCss ?
extractText.extract({ notExtractLoader: loaders[0], loader: loaders.slice(1) }) :
use: extractCss ?
extractText.extract({ fallbackLoader: loaders[0], loader: loaders.slice(1) }) :
loaders
}])
},
Expand Down

0 comments on commit 14254ba

Please sign in to comment.