Skip to content

Commit 3d7b11b

Browse files
committed
fix: add globPatterns to PWA config to cache SVG and PNG assets for offline use
1 parent 6edec0a commit 3d7b11b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/tools/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export default defineConfig({
4646
workbox: {
4747
clientsClaim: true,
4848
skipWaiting: true,
49+
globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
4950
},
5051
}),
5152
compression({

0 commit comments

Comments
 (0)