Skip to content

Commit

Permalink
fix regexp for css modules extension
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Apr 17, 2018
1 parent 5488a35 commit 8ecce8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/postcss-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function ensurePostCSSOption(option) {
}

function isModuleFile(file) {
return /\.module\.(css|styl|stylus|sass|scss|less|sss)$/.test(file)
return /\.module\.[a-z]{2,6}$/.test(file)
}

export default {
Expand Down

0 comments on commit 8ecce8c

Please sign in to comment.