Skip to content

Commit

Permalink
fix: correct plugin order for CSS Modules (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverJAsh authored and michael-ciniawsky committed May 23, 2017
1 parent 72947b0 commit b90f492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/processCss.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ module.exports = function processCss(inputSource, inputMap, options, callback) {
};

var pipeline = postcss([
modulesValues,
localByDefault({
mode: options.mode,
rewriteUrl: function(global, url) {
Expand All @@ -176,7 +177,6 @@ module.exports = function processCss(inputSource, inputMap, options, callback) {
}
}),
extractImports(),
modulesValues,
modulesScope({
generateScopedName: function generateScopedName (exportName) {
return customGetLocalIdent(options.loaderContext, localIdentName, exportName, {
Expand Down

0 comments on commit b90f492

Please sign in to comment.