perf: exclude pwa web manifests from sw precache (#1213)
This commit is contained in:
parent
7059cfc7b4
commit
a91d3c1e92
2 changed files with 16 additions and 3 deletions
|
@ -13,8 +13,8 @@ export const pwa: VitePWANuxtOptions = {
|
|||
includeManifestIcons: false,
|
||||
manifest: false,
|
||||
injectManifest: {
|
||||
globPatterns: ['**/*.{js,json,css,html,txt,svg,png,ico,webp,woff,woff2,ttf,eot,otf,wasm,webmanifest}'],
|
||||
globIgnores: ['emojis/**', 'shiki/**'],
|
||||
globPatterns: ['**/*.{js,json,css,html,txt,svg,png,ico,webp,woff,woff2,ttf,eot,otf,wasm}'],
|
||||
globIgnores: ['emojis/**', 'shiki/**', 'manifest**.webmanifest'],
|
||||
},
|
||||
devOptions: {
|
||||
enabled: process.env.VITE_DEV_PWA === 'true',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue