Feature: PWA (#479)

* feat: add PWA support with offline capabilities

- Add web app manifest with icons and theme configuration
- Add service worker with cache-first strategy for static assets
- Add useServiceWorker hook for SW registration
- Add PWA meta tags and Apple-specific tags to index.html
- Update vite.config.ts for optimal asset caching

* Update package-lock.json
This commit was merged in pull request #479.
This commit is contained in:
Nunzio Marfè
2026-01-12 08:36:03 +01:00
committed by GitHub
parent ceff07c685
commit 816172d67b
6 changed files with 247 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ export default defineConfig({
base: "./",
build: {
sourcemap: false,
assetsInlineLimit: 0,
rollupOptions: {
output: {
manualChunks: {
@@ -35,9 +36,9 @@ export default defineConfig({
server: {
https: useHTTPS
? {
cert: fs.readFileSync(sslCertPath),
key: fs.readFileSync(sslKeyPath),
}
cert: fs.readFileSync(sslCertPath),
key: fs.readFileSync(sslKeyPath),
}
: false,
port: 5173,
host: "localhost",