Skip to content

Commit 36dab3b

Browse files
committed
Improve PWA cache
1 parent ea585b6 commit 36dab3b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

frontend/vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export default defineConfig(({ mode }) => {
4141
{ src: 'icon-512.png', sizes: '512x512', type: 'image/png' }
4242
],
4343
orientation: 'portrait',
44+
},
45+
workbox: {
46+
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2,wasm}'],
4447
}
4548
}),
4649
viteStaticCopy({

0 commit comments

Comments
 (0)