Skip to content

Commit

Permalink
perf: Update plugins.VitePWA
Browse files Browse the repository at this point in the history
  • Loading branch information
sprout2000 committed Jun 11, 2024
1 parent a0be3ed commit f8d6283
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
workbox: {
clientsClaim: true,
skipWaiting: true,
},
manifest: {
name: 'Todo App (PWA)',
short_name: 'Todo',
Expand All @@ -18,6 +23,18 @@ export default defineConfig({
orientation: 'portrait',
theme_color: '#3f51b2',
background_color: '#efeff4',
screenshots: [
{
src: 'screen-shot.png',
sizes: '709x1400',
form_factor: 'narrow',
},
{
src: 'screen-shot-wide.png',
sizes: '1278x1508',
form_factor: 'wide',
},
],
icons: [
{
src: 'icon-192x192.png',
Expand Down

0 comments on commit f8d6283

Please sign in to comment.