From 6b72054525799684f8c47c27002ecc88cfeb59b3 Mon Sep 17 00:00:00 2001 From: xiongxiao Date: Thu, 19 Mar 2026 05:08:27 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BC=98=E5=8C=96=20PWA=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=8A=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 7ab023f..5610127 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -32,7 +32,8 @@ export default defineConfig({ tailwindcss(), VitePWA({ injectRegister: 'auto', - workbox:{ + registerType: 'autoUpdate', + workbox: { maximumFileSizeToCacheInBytes: 10 * 1024 * 1024, // 10MB } }),