From 8ecce8caa1959fb15f8286e2ca115e32540bf31d Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Tue, 17 Apr 2018 22:44:38 +0800 Subject: [PATCH] fix regexp for css modules extension --- src/postcss-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postcss-loader.js b/src/postcss-loader.js index 960b7d6c..f120feeb 100644 --- a/src/postcss-loader.js +++ b/src/postcss-loader.js @@ -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 {