From 2274049b8e18f9f7224e752943efb44a5b96b21a Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Sat, 3 Feb 2024 17:07:04 +0800 Subject: [PATCH] E包在进入小程序就开始预加载,在开发者工具上看不到效果,要在手机上才有效果 --- app.json | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/app.json b/app.json index e017ce1..74be3c1 100644 --- a/app.json +++ b/app.json @@ -243,6 +243,14 @@ } ], + "preloadRule": { + "pages/index/index/index": { + "network": "all", + "packages": [ + "pack5" + ] + } + }, "permission": { "scope.userLocation": { -- libgit2 0.21.4