Skip to content

Commit

Permalink
improving pwa
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomorebonato committed Jul 5, 2023
1 parent 353d4ea commit edc8c92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>collab-editor</title>
<meta name="description" content="A collaborative editor" />
<link rel="icon" type="image/x-icon" href="/client/assets/favicon.ico" />
<meta name="theme-color" content="#ffffff" />
</head>
<body style="background-color: #1e1e1e">
<input
Expand Down
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ export default defineConfig({
plugins: [
react(),
VitePWA({
injectRegister: 'auto',
registerType: 'autoUpdate',
devOptions: {
enabled: true,
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
},
}),
],
})

0 comments on commit edc8c92

Please sign in to comment.