Commit 2274049b8e18f9f7224e752943efb44a5b96b21a
1 parent
3a704d91
E包在进入小程序就开始预加载,在开发者工具上看不到效果,要在手机上才有效果
Showing
1 changed file
with
8 additions
and
0 deletions
app.json
| @@ -243,6 +243,14 @@ | @@ -243,6 +243,14 @@ | ||
| 243 | } | 243 | } |
| 244 | ], | 244 | ], |
| 245 | 245 | ||
| 246 | + "preloadRule": { | ||
| 247 | + "pages/index/index/index": { | ||
| 248 | + "network": "all", | ||
| 249 | + "packages": [ | ||
| 250 | + "pack5" | ||
| 251 | + ] | ||
| 252 | + } | ||
| 253 | + }, | ||
| 246 | 254 | ||
| 247 | "permission": { | 255 | "permission": { |
| 248 | "scope.userLocation": { | 256 | "scope.userLocation": { |