From 425db33f5cfe9ceaf1b881ea1b75568673a0806b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nunzio=20Marf=C3=A8?= Date: Wed, 17 Dec 2025 16:02:55 +0100 Subject: [PATCH] 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 --- index.html | 7 ++ public/manifest.json | 40 +++++++++++ public/sw.js | 120 ++++++++++++++++++++++++++++++++ src/hooks/use-service-worker.ts | 71 +++++++++++++++++++ src/main.tsx | 5 ++ vite.config.ts | 7 +- 6 files changed, 247 insertions(+), 3 deletions(-) create mode 100644 public/manifest.json create mode 100644 public/sw.js create mode 100644 src/hooks/use-service-worker.ts diff --git a/index.html b/index.html index b376f7cd..83e38e8e 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,13 @@ + + + + + + + Termix