From 11693a32fd60775294a2b320cb5d60c8463ebf43 Mon Sep 17 00:00:00 2001 From: K <704496037@qq.com> Date: Mon, 29 Jan 2024 05:52:27 +0800 Subject: [PATCH] PWA manifest --- package.json | 2 +- vite.config.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d1233a86f..7bc960390 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.106", + "version": "2.14.107", "private": true, "scripts": { "dev": "vite --host", diff --git a/vite.config.ts b/vite.config.ts index 999bba329..13df092f4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -57,8 +57,6 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { name: 'Sub Store', short_name: 'Sub Store', description: 'A sub-converter running in a Progressive Web App', - theme_color: '#121212', - background_color: '#121212', id: '/', start_url: '/', scope: '/', @@ -94,9 +92,11 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { ], }, workbox: { - navigateFallbackDenylist: [/(^|\/.+)\/(api|download)\/.+/], - // globPatterns: ['**/*.{css,js,gz,eot,html,svg,png,ico,ttf,woff2}'], runtimeCaching: [ + { + urlPattern: /^https?:\/\/.+?\/(?:api|download)\/.+/, + handler: "NetworkOnly", + }, { urlPattern: /.*\.(?:js|css|gz|html|json)/i, // json handler: 'CacheFirst',