Skip to content

Commit

Permalink
fix: pwa conf
Browse files Browse the repository at this point in the history
  • Loading branch information
tiamo committed Jul 4, 2024
1 parent b8f5ff2 commit a9a87e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default defineConfig(({ mode, isSsrBuild }) => {
VitePWA({
registerType: 'autoUpdate',
workbox: {
navigateFallback: '/404.html',
navigateFallback: '404.html',
globPatterns: ['**/*.{js,css,webp,png,svg,gif,mp4,ico,woff2}'],
},
includeAssets: ['**/*.{webp,png,jpg,svg,gif,ico,txt,woff2}'],
Expand All @@ -132,17 +132,17 @@ export default defineConfig(({ mode, isSsrBuild }) => {
display: 'minimal-ui',
icons: [
{
src: '/pwa-192x192.png',
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/pwa-512x512.png',
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
},
{
src: '/favicon.svg',
src: 'favicon.svg',
sizes: '50x50',
type: 'image/svg',
purpose: 'any maskable',
Expand Down

0 comments on commit a9a87e4

Please sign in to comment.