add font file types to offline cache

This commit is contained in:
Felix Roos 2024-03-29 17:13:01 +01:00
parent a1e07f3079
commit 1af55c0d19

View File

@ -69,7 +69,7 @@ export default defineConfig({
registerType: 'autoUpdate',
injectRegister: 'auto',
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,json,wav,mp3,ogg}'],
globPatterns: ['**/*.{js,css,html,ico,png,svg,json,wav,mp3,ogg,ttf,woff2,TTF,otf}'],
runtimeCaching: [
{
urlPattern: ({ url }) =>