Skip to content

Commit

Permalink
Add Manifest to PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelc2209 committed May 23, 2024
1 parent 8b70bda commit 118c66b
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,31 @@ import { VitePWA } from 'vite-plugin-pwa';

export default defineConfig({
base: '/',
plugins: [react(), VitePWA({ registerType: 'autoUpdate' })],
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
manifest: {
name: 'MC - React Sandbox',
start_url: '/',
short_name: 'MC - Sandbox',
description: 'React Sandbox',
theme_color: '#031c36',
icons: [
{
src: '/logo192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: '/logo512.png',
sizes: '512x512',
type: 'image/png'
}
]
}
})
],
test: {
globals: true,
environment: 'jsdom',
Expand Down

0 comments on commit 118c66b

Please sign in to comment.