pref(i18n): cache language pack in service worker

This commit is contained in:
Darren Yu 2025-09-02 18:09:04 +08:00
parent e53eb86a32
commit bbcf3a22d3
No known key found for this signature in database
GPG Key ID: 2D69AA5646405984

View File

@ -19,6 +19,7 @@ export default defineConfig({
workbox: {
maximumFileSizeToCacheInBytes: 10000000,
navigateFallbackDenylist: [/^\/pdfviewer.html/, /^\/api\/(.+)/, /^\/f\/(.+)/, /^\/s\/(.+)/],
globPatterns: ["**/*.{js,css,html}", "locales/**/*.json"],
},
devOptions: {
enabled: true,