Skip to content

Commit 268f3f1

Browse files
committed
Making it a PWA
1 parent 5a43f0d commit 268f3f1

13 files changed

Lines changed: 3506 additions & 319 deletions

.vite-hooks/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vp staged

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
5+
<link rel="icon" href="/favicon.ico" sizes="any" />
6+
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png" />
7+
<meta name="theme-color" content="#ff5a1f" />
68
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
79
<link rel="preconnect" href="https://fonts.googleapis.com" />
810
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"dev": "vp dev",
88
"build": "tsc && vp build",
99
"preview": "vp preview",
10-
"prepare": "vp config"
10+
"prepare": "vp config",
11+
"generate-pwa-assets": "pwa-assets-generator --preset minimal public/icon.svg"
1112
},
1213
"dependencies": {
1314
"@base-ui/react": "^1.4.1",
@@ -26,9 +27,11 @@
2627
"@types/node": "^25.6.0",
2728
"@types/react": "^19.2.14",
2829
"@types/react-dom": "^19.2.3",
30+
"@vite-pwa/assets-generator": "^1.0.2",
2931
"@vitejs/plugin-react": "^6.0.1",
3032
"typescript": "~6.0.2",
3133
"vite": "catalog:",
34+
"vite-plugin-pwa": "^1.3.0",
3235
"vite-plus": "catalog:"
3336
},
3437
"packageManager": "pnpm@10.33.2"

pnpm-lock.yaml

Lines changed: 3456 additions & 316 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ catalog:
55
overrides:
66
vite: "catalog:"
77
vitest: "catalog:"
8+
onlyBuiltDependencies:
9+
- sharp
810
peerDependencyRules:
911
allowAny:
1012
- vite
1001 Bytes
Loading

public/favicon.ico

872 Bytes
Binary file not shown.

public/icon.svg

Lines changed: 8 additions & 0 deletions
Loading

public/maskable-icon-512x512.png

2.89 KB
Loading

public/pwa-192x192.png

1.3 KB
Loading

0 commit comments

Comments
 (0)