feat: integrate PWA support and service worker registration

- Added vite-plugin-pwa for Progressive Web App capabilities.
- Configured service worker with caching strategies for improved offline support.
- Registered service worker in main.tsx to handle updates and caching.
- Updated package.json to include new dependencies for PWA functionality.
This commit is contained in:
typist
2025-10-29 08:58:02 +08:00
parent 7646830194
commit 782de6e38a
5 changed files with 2870 additions and 10 deletions

View File

@@ -48,7 +48,9 @@
"tw-animate-css": "^1.4.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.45.0",
"vite": "npm:rolldown-vite@7.1.14"
"vite": "npm:rolldown-vite@7.1.14",
"vite-plugin-pwa": "^1.1.0",
"workbox-window": "^7.3.0"
},
"pnpm": {
"overrides": {