Skip to content

Commit d71bc76

Browse files
authored
Enable getLocalIdent in global options
This will fix webpack-contrib#389
1 parent 08e9d47 commit d71bc76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/processCss.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ module.exports = function processCss(inputSource, inputMap, options, callback) {
140140
var forceMinimize = query.minimize;
141141
var minimize = typeof forceMinimize !== "undefined" ? !!forceMinimize : options.minimize;
142142

143-
var customGetLocalIdent = query.getLocalIdent || getLocalIdent;
143+
var customGetLocalIdent = query.getLocalIdent ||
144+
(options.loaderContext.options.css && options.loaderContext.options.css.getLocalIdent) ||
145+
getLocalIdent;
144146

145147
var parserOptions = {
146148
root: root,

0 commit comments

Comments
 (0)