From 3b2e941a83ad49d3167df864a5a06a81ef944470 Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期三, 24 九月 2025 23:55:45 +0800
Subject: [PATCH] Merge branch 'ID2130-未签到页面优化' into test

---
 postcss.config.js |   24 ++++++------------------
 1 files changed, 6 insertions(+), 18 deletions(-)

diff --git a/postcss.config.js b/postcss.config.js
index 86ee644..8d471d1 100644
--- a/postcss.config.js
+++ b/postcss.config.js
@@ -3,23 +3,11 @@
     'postcss-pxtorem': {
       rootValue: 37.5,
       propList: ['*'],
-      // include: file => {
-      //   if (!file) return false;
-      //   const normalized = file.replace(/\\/g, '/');
-      //   // 只转换 mobile 目录里的样式 OR element-plus 目录里的样式
-      //   // 但 element-plus 样式只在 mobile 目录被引用时才生效,需保证引用范围
-      //   return normalized.includes('/src/views/mobile/') || normalized.includes('/node_modules/element-plus/');
-      // },
-      // exclude: file => {
-      //   if (!file) return false;
-      //   const normalized = file.replace(/\\/g, '/');
-      //   // 排除除 element-plus 外的 node_modules,防止无关样式被转
-      //   if (/node_modules/.test(normalized) && !normalized.includes('/node_modules/element-plus/')) {
-      //     return true;
-      //   }
-      //   return false;
-      // },
+      // 只处理 mobile 目录
+      include: /src[\/\\]views[\/\\]mobile/,
+      // 排除 element-plus(node_modules 下的 element-plus 样式)
+      exclude: /(node_modules\/element-plus|element-plus\/theme-chalk)/,
       minPixelValue: 2,
-    }
-  }
+    },
+  },
 }

--
Gitblit v1.8.0