shish 4 年 前
コミット
b5b3b2e95a
1 ファイル変更19 行追加24 行削除
  1. 19 24
      线上/ghsApp/src/manifest.json

+ 19 - 24
线上/ghsApp/src/manifest.json

@@ -23,7 +23,8 @@
         "modules" : {
             "VideoPlayer" : {},
             "Bluetooth" : {},
-            "Geolocation" : {}
+            "Geolocation" : {},
+            "Push" : {}
         },
         /* 应用发布信息 */
         "distribute" : {
@@ -148,17 +149,14 @@
         "setting" : {
             "urlCheck" : false
         },
-		"optimization" : {
-			"subPackages" : true
-		},
+        "optimization" : {
+            "subPackages" : true
+        },
         "usingComponents" : true,
         "permission" : {
             "scope.userLocation" : {
                 "desc" : "请点击确定"
             }
-        },
-        "optimization": {  
-            "subPackages": true  
         }
     },
     "mp-alipay" : {
@@ -176,23 +174,23 @@
             // "mode" : "history",
             "base" : "/"
         },
-        "async": {
-            "timeout": 200000
+        "async" : {
+            "timeout" : 20000
         },
-        "optimization": {
-            "treeShaking": {
-                "enable": true
+        "optimization" : {
+            "treeShaking" : {
+                "enable" : true
             }
         },
-        "devServer": {
-            "port": 81,
-            "proxy": {
-                "/api": {
-                    "target": "http://api.shop.wixhb.com",
-                    "secure": false,
-                    "changeOrigin": true,
-                    "pathRewrite": {
-                        "^/api": ""
+        "devServer" : {
+            "port" : 81,
+            "proxy" : {
+                "/api" : {
+                    "target" : "http://api.shop.wixhb.com",
+                    "secure" : false,
+                    "changeOrigin" : true,
+                    "pathRewrite" : {
+                        "^/api" : ""
                     }
                 }
             }
@@ -203,9 +201,6 @@
                     "key" : ""
                 }
             }
-        },
-        "async" : {
-            "timeout" : 20000
         }
     }
 }