Skip to content

Commit 217cd2f

Browse files
committed
try pwa
1 parent 4ffe28a commit 217cd2f

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="manifest" href="/manifest.json">
5+
<!-- <link rel="manifest" href="/manifest.json"> -->
66
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
77
<meta name="viewport" content="initial-scale=1, width=device-width" />
88
<!-- Fonts to support Material Design -->

manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"short_name": "careicu",
44
"description": "Frontend React PWA for the Care Beyond ICU project",
55
"theme_color": "#ffffff",
6-
"display": "standalone",
76
"scope": "/",
87
"start_url": "/",
98
"icons": [

vite.config.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ export default defineConfig({
1313
},
1414
plugins: [
1515
react(),
16-
// VitePWA({
17-
// manifest,
18-
// injectRegister: 'auto',
19-
// includeAssets: ['favicon.svg', 'favicon.ico', 'robots.txt', 'apple-touch-icon.png'],
20-
// // switch to "true" to enable sw on development
21-
// devOptions: {
22-
// navigateFallbackAllowlist: [/^index.html$/],
23-
// enabled: false,
24-
// },
25-
// workbox: {
26-
// globPatterns: ['**/*.{js,css,html}', '**/*.{svg,png,jpg,gif}'],
27-
// navigateFallback: '/index.html',
28-
// },
29-
// }),
16+
VitePWA({
17+
manifest,
18+
injectRegister: 'auto',
19+
includeAssets: ['favicon.svg', 'favicon.ico', 'robots.txt', 'apple-touch-icon.png'],
20+
// switch to "true" to enable sw on development
21+
devOptions: {
22+
navigateFallbackAllowlist: [/^index.html$/],
23+
enabled: false,
24+
},
25+
workbox: {
26+
globPatterns: ['**/*.{js,css,html}', '**/*.{svg,png,jpg,gif}'],
27+
navigateFallback: '/index.html',
28+
},
29+
}),
3030
],
3131
resolve: {
3232
alias: {

0 commit comments

Comments
 (0)