Quellcode durchsuchen

fix: 优化微信小程序代码质量,启用JS压缩和组件按需注入

skyline vor 2 Wochen
Ursprung
Commit
c14e1241b1
2 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 1 0
      haha-mp/project.config.json
  2. 2 1
      haha-mp/src/manifest.json

+ 1 - 0
haha-mp/project.config.json

@@ -0,0 +1 @@
+{"description": "haha-mp项目配置文件", "packOptions": {"ignore": [{"type": "file", "value": ".eslintrc.js"}]}, "setting": {"urlCheck": false, "es6": true, "postcss": false, "minified": true, "newFeature": true}, "compileType": "miniprogram", "appid": "wxb1cbe4678e0175f2", "projectname": "haha-mp", "condition": {}}

+ 2 - 1
haha-mp/src/manifest.json

@@ -60,7 +60,8 @@
             "scope.userLocation" : {
                 "desc" : "获取位置信息"
             }
-        }
+        },
+        "lazyCodeLoading" : "requiredComponents"
     },
     "mp-alipay" : {
         "usingComponents" : true