From be9a85c14e39edbed571850912d84765a1af426c Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 25 Feb 2023 11:35:07 -0600 Subject: [PATCH] Include more assets in PWA precache --- vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index f3ce360..0853646 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -32,6 +32,9 @@ export default defineConfig({ tsconfigPaths(), VitePWA({ includeAssets: ["Logo.svg", "favicon.ico", "robots.txt", "apple-touch-icon.png"], + workbox: { + globPatterns: ['**/*.{js,css,html,ico,png,svg}'] + }, manifest: { name: projInfo.title, short_name: projInfo.title,