Skip to content

Commit

Permalink
feat(index): add -loader suffix
Browse files Browse the repository at this point in the history
done in preparation for webpack/webpack#3102
  • Loading branch information
niieani committed Nov 8, 2016
1 parent dbeddd9 commit b8369e2
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 @@ -11,7 +11,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin')
* resolveRelativeUrl: boolean or object with parameters
*/
export = function less({ filename = '[name].css', allChunks = false, sourceMap = false, extractText = undefined, resolveRelativeUrl = undefined, additionalLoaders = [] } = {}) {
additionalLoaders.push(`less${sourceMap ? '?sourceMap' : ''}`)
additionalLoaders.push(`less-loader${sourceMap ? '?sourceMap' : ''}`)
return easyCss({ test: /\.less$/i, filename, allChunks, extractText, resolveRelativeUrl, sourceMap, additionalLoaders })
}

0 comments on commit b8369e2

Please sign in to comment.