From c249b6693cdab70bc356cc391b0982e0a92998ec Mon Sep 17 00:00:00 2001 From: chenhao <694886886@qq.com> Date: Tue, 26 Mar 2024 15:38:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=20css=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=8A=A8=E7=94=BB=E5=90=8D=E7=BC=BA=E5=B0=91=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E5=8A=A8=E7=94=BB=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.js b/config/config.js index 245dbab..bd925e5 100644 --- a/config/config.js +++ b/config/config.js @@ -101,7 +101,7 @@ export default { } const match = context.resourcePath.match(/src(.*)/); if (match && match[1]) { - const antdProPath = match[1].replace('.less', ''); + const antdProPath = match[1].replace('.less', '').replace('.css', '').replace('.scss', '').replace('sass', ''); const arr = slash(antdProPath) .split('/') .map(a => a.replace(/([A-Z])/g, '-$1'))