feat(pwa): 补齐 web 端 PWA 可安装条件

- 新增 192/512 图标与 maskable 变体(源自 icon.png,安全区 80%)
- manifest.json 图标声明修正(原先仅声明一个实际不存在的 256 尺寸)
- 注册最小 Service Worker(空 fetch 处理器,不做缓存拦截),仅 Web 生产环境生效

Closes #640
Ref #382
This commit is contained in:
alger
2026-07-05 15:06:19 +08:00
parent 4554246c69
commit 2d773ae946
6 changed files with 36 additions and 2 deletions
+13 -2
View File
@@ -8,9 +8,20 @@
"theme_color": "#000000",
"icons": [
{
"src": "./icon.png",
"src": "/icon-192.png",
"type": "image/png",
"sizes": "256x256"
"sizes": "192x192"
},
{
"src": "/icon-512.png",
"type": "image/png",
"sizes": "512x512"
},
{
"src": "/icon-512-maskable.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "maskable"
}
]
}