Skip to content

Commit

Permalink
chore(ServiceWorker): cache WASM files (used by tiny-secp256k1 package)
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Sep 28, 2024
1 parent c5abb4c commit 7108352
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vite-pwa.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default mergeConfig(
manifest: manifest,
manifestFilename: 'manifest.json',
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,wasm}'],
maximumFileSizeToCacheInBytes: 5000000 // 5 MiB
}
})
Expand Down

1 comment on commit 7108352

@bludnic
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.