add font file types to offline cache
This commit is contained in:
parent
a1e07f3079
commit
1af55c0d19
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ export default defineConfig({
|
||||||
registerType: 'autoUpdate',
|
registerType: 'autoUpdate',
|
||||||
injectRegister: 'auto',
|
injectRegister: 'auto',
|
||||||
workbox: {
|
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: [
|
runtimeCaching: [
|
||||||
{
|
{
|
||||||
urlPattern: ({ url }) =>
|
urlPattern: ({ url }) =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue