Skip to content

Commit

Permalink
include all static assets, cache all workbox asset imports
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Feb 17, 2024
1 parent 6cd437b commit 42037df
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ export default defineConfig({
registerType: 'prompt',
manifestFilename: 'manifest.json',
filename: 'service-worker.js',
// cache all asset imports
workbox: {
globPatterns: ["**/*"]
},
// include all static assets
includeAssets: [
'favicon.ico',
'img/icons/favicon.ico',
'img/icons/favicon.svg',
'img/icons/apple-touch-icon-60x60.png',
'img/icons/apple-touch-icon-76x76.png',
'img/icons/apple-touch-icon-120x120.png',
'img/icons/apple-touch-icon-152x152.png',
'img/icons/apple-touch-icon-180x180.png',
'img/icons/maskable-icon-512x512.png'
"**/*.ico",
"**/*.svg",
"**/*.png",
"**/*.jpg",
"**/*.webp"
],
manifest: {
name: description,
Expand Down

0 comments on commit 42037df

Please sign in to comment.