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 13, 2016
1 parent 558aae1 commit a911f3c
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 @@ -28,7 +28,7 @@ export = function less({ filename = '[name].css', allChunks = false, sourceMap =
module: {
loaders: get(this, 'module.loaders', []).concat([{
test: /\.less$/i,
loaders: extractCss ? extractText.extract(...loaders) : loaders
loaders: extractCss ? extractText.extract(...loaders.slice(1)) : loaders
}])
}
} as WebpackConfig
Expand Down

0 comments on commit a911f3c

Please sign in to comment.