mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
pref(i18n): cache language pack in service worker
This commit is contained in:
parent
e53eb86a32
commit
bbcf3a22d3
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue