Merge pull request #1032 from tidalcycles/font-caching

add font file types to offline cache
This commit is contained in:
Felix Roos 2024-03-29 17:14:27 +01:00 committed by GitHub
commit 1e8a3c2918
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 }) =>