From db6872f21d8d69e6f4f5f3c0a79424eee36759ce Mon Sep 17 00:00:00 2001 From: Shiny Nematoda <122038334+snematoda@users.noreply.github.com> Date: Wed, 13 Mar 2024 17:47:41 +0100 Subject: [PATCH] fix: Avoid unnecessary precaching (#2258) --- vite.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 1cd37371..3b455b09 100644 --- a/vite.config.js +++ b/vite.config.js @@ -21,7 +21,13 @@ export default defineConfig({ VitePWA({ registerType: "autoUpdate", workbox: { - globPatterns: ["**/*.{js,css,html,ico,svg,png}", "manifest.webmanifest"], + globPatterns: [ + "**/*.{css,html}", + "**/[A-Z]*.js", + "**/index*.js", + "**/shaka-player*.js", + "manifest.webmanifest", + ], globIgnores: ["**/*-legacy-*.js"], runtimeCaching: [ {