From 99e49ef286a2f6a1cfbe1836af83e22ecf1cbd38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E7=86=8A=E7=86=8A=E5=AD=90=E8=B7=AF?= Date: Fri, 31 Jul 2026 11:32:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(config):=20=E6=B7=BB=E5=8A=A0=E5=85=A8?= =?UTF-8?q?=E5=B1=80SASS/SCSS=E5=AF=BC=E5=85=A5=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 设置`sassCommonUseFilePath`和`scssCommonUseFilePath`以引用全局SASS和SCSS文件,实现项目范围内的样式导入,无需在每个组件中显式编写@use语句。 --- project.config.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/project.config.json b/project.config.json index 0f9edec..c24f1e0 100644 --- a/project.config.json +++ b/project.config.json @@ -38,7 +38,11 @@ "swc": true, "disableSWC": false, "disableUseStrict": false, - "urlCheck": false + "urlCheck": false, + "sassSetting": { + "sassCommonUseFilePath": "global.sass", + "scssCommonUseFilePath": "global.scss" + } }, "simulatorType": "wechat", "simulatorPluginLibVersion": {},