Эх сурвалжийг харах

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

skyline 2 долоо хоног өмнө
parent
commit
c14e1241b1

+ 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