Files
sokoban/package.json
T
tiennm99 374422abdd feat(pwa): full offline support via vite-plugin-pwa
Register VitePWA in the production config with autoUpdate, Nord theme
colors, /sokoban/ start_url and scope, 192/512 plus a maskable icon.
Workbox precaches the built bundle so subsequent visits run offline.

Generate matching pwa-192/512 and apple-touch-icon PNGs in public/ so
"Add to Home Screen" picks up a proper icon on iOS and Android.
2026-04-27 20:38:23 +07:00

29 lines
819 B
JSON

{
"name": "sokoban",
"description": "A simple Sokoban game built with Phaser 3 and Vite",
"version": "1.0.0",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/tiennm99/sokoban.git"
},
"author": "tiennm99",
"license": "Apache-2.0",
"licenseUrl": "https://www.apache.org/licenses/LICENSE-2.0",
"bugs": {
"url": "https://github.com/tiennm99/sokoban/issues"
},
"homepage": "https://tiennm99.github.io/sokoban/",
"scripts": {
"dev": "vite --config vite/config.dev.mjs",
"dev:codeserver": "vite --config vite/config.codeserver.mjs",
"build": "vite build --config vite/config.prod.mjs"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"svelte": "^5.19.0",
"vite": "^6.4.2",
"vite-plugin-pwa": "^1.2.0"
}
}