Skip to content

Commit b90f492

Browse files
OliverJAshmichael-ciniawsky
authored andcommitted
fix: correct plugin order for CSS Modules (#534)
1 parent 72947b0 commit b90f492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/processCss.js

+1-1
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)