mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
- Wire up vite-plugin-pwa: generates a web app manifest and a precache-only service worker for the built app shell (JS/CSS/HTML/ icons). WebSocket (/ws) and file-transfer traffic are never intercepted or cached. Disabled in dev so it doesn't interfere with Vite's own HMR websocket. - Add 512px + maskable 512px icons generated from the existing logo. - Add iOS "Add to Home Screen" meta tags (manifest support there is partial). - Gateway: serve .webmanifest with the correct MIME type.
28 lines
590 B
JSON
28 lines
590 B
JSON
{
|
|
"name": "webspeak3-web",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "oxlint",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"fflate": "^0.8.3",
|
|
"react": "^19.2.7",
|
|
"react-dom": "^19.2.7"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.13.2",
|
|
"@types/react": "^19.2.17",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.3",
|
|
"oxlint": "^1.71.0",
|
|
"typescript": "~6.0.2",
|
|
"vite": "^8.1.1",
|
|
"vite-plugin-pwa": "^1.3.0"
|
|
}
|
|
}
|