Skip to content

Commit f52aea7

Browse files
authored
Fix CSS Modules plugin order
Fixes webpack-contrib#533
1 parent fe4cf7a commit f52aea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/processCss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ module.exports = function processCss(inputSource, inputMap, options, callback) {
159159
};
160160

161161
var pipeline = postcss([
162+
modulesValues,
162163
localByDefault({
163164
mode: options.mode,
164165
rewriteUrl: function(global, url) {
@@ -176,7 +177,6 @@ module.exports = function processCss(inputSource, inputMap, options, callback) {
176177
}
177178
}),
178179
extractImports(),
179-
modulesValues,
180180
modulesScope({
181181
generateScopedName: function generateScopedName (exportName) {
182182
return customGetLocalIdent(options.loaderContext, localIdentName, exportName, {

0 commit comments

Comments
 (0)