PWA notes โ
This project includes a minimal Progressive Web App setup.
Files added:
public/manifest.webmanifestโ app manifestpublic/icons/*โ icon placeholdersvite.config.mjsโ config forvite-plugin-pwa(generates service worker duringbuild)
How to test locally:
- Start the dev server:
bash
npm run dev- Build and preview to test the service worker flow (recommended):
bash
npm run build
npm run preview- Visit the site in Chrome/Edge and open DevTools > Application to see the manifest and service worker (if built).
Notes:
- The plugin generates the service worker during
buildโ the dev server uses an in-memory service worker in some cases, but testing PWAs is best viabuild+preview. - For production, ensure proper icons and signed assets are in
public/iconsfor best platform support.