Просмотр исходного кода

🔧 chore(config): 更新项目配置与构建脚本

- 在 Claude 设置中允许执行 `npm run build:weapp` 命令
- 为 Taro 小程序配置添加 `miniCssExtractPluginOption.ignoreOrder: true` 以解决 CSS 顺序警告
- 更新 `project.config.json` 中的小程序 AppID
- 清理 `cssChildCombinatorReplaceValue` 数组末尾的空格
yourname 3 недель назад
Родитель
Сommit
210308e46f
3 измененных файлов с 7 добавлено и 3 удалено
  1. 2 1
      .claude/settings.local.json
  2. 4 1
      mini/config/index.ts
  3. 1 1
      mini/project.config.json

+ 2 - 1
.claude/settings.local.json

@@ -87,7 +87,8 @@
       "Bash(export:*)",
       "Bash(git pull:*)",
       "Bash(git stash:*)",
-      "Bash(git push:*)"
+      "Bash(git push:*)",
+      "Bash(npm run build:weapp:*)"
     ],
     "deny": [],
     "ask": []

+ 4 - 1
mini/config/index.ts

@@ -50,6 +50,9 @@ export default defineConfig<'webpack5'>(async (merge, { command, mode }) => {
       enable: false // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
     },
     mini: {
+      miniCssExtractPluginOption: {
+        ignoreOrder: true,
+      },
       postcss: {
         pxtransform: {
           enable: true,
@@ -76,7 +79,7 @@ export default defineConfig<'webpack5'>(async (merge, { command, mode }) => {
                 cssSelectorReplacement:{
                   universal: ['view','text','button', 'input']
                 },
-                cssChildCombinatorReplaceValue: ['view', 'text', 'button', 'input']  
+                cssChildCombinatorReplaceValue: ['view', 'text', 'button', 'input']
               }]
             }
           }

+ 1 - 1
mini/project.config.json

@@ -2,7 +2,7 @@
   "miniprogramRoot": "./dist",
   "projectname": "mini",
   "description": "",
-  "appid": "wx224c7b7d5e4ed130",
+  "appid": "wx653c2150987f8e51",
   "setting": {
     "urlCheck": false,
     "es6": false,