Description
vite-plugin-pwa is a framework-agnostic plugin for Vite that adds progressive web app support to a project with sensible defaults. It generates a service worker with offline support using Workbox, and it injects the Web App Manifest automatically. The plugin can prompt users when new content is available and reload the page with a stale-while-revalidate approach, so updates reach people without a manual refresh. It has built-in support for vanilla JavaScript, Vue 3, React, Svelte, SolidJS and Preact, and it works with meta frameworks such as Iles, SvelteKit, VitePress, Astro, Nuxt 3 and Remix. You can configure which static assets are available offline, and you can debug a custom service worker while developing the app. A PWA assets generator creates icons and other PWA assets from one source image with a single command, and the plugin can serve and inject those assets during development. The project is written in TypeScript and is fully tree-shakable. The README lists the Node.js and Vite versions required for each release. Its documentation has guides and a configuration reference.…
Highlights
- Zero-config service worker with Workbox
- Automatic Web App Manifest injection
- Prompt for new content and automatic reload
- Integrations for React, Vue, Svelte and more
- PWA asset generator from one source image
Ratings & Reviews
No ratings yet
Be the first to rate Vite Plugin Pwa.
People also visit

pwa-development
Progressive Web Apps - service workers, caching strategies, offline, Workbox
Vite Plugin Pwa FAQ
What does vite-plugin-pwa do?
It adds progressive web app features to a Vite project, including a service worker for offline use and a generated Web App Manifest.
Which frameworks does it support?
Vanilla JavaScript, Vue 3, React, Svelte, SolidJS and Preact, plus meta frameworks such as SvelteKit, VitePress, Astro, Nuxt 3 and Remix.
Does it need configuration?
No. It includes sensible default settings for common cases, and you can customize its behavior when you need to.
Can it generate icons?
Yes. The PWA assets generator creates the PWA assets from one source image with a single command.
Which Node.js and Vite versions are needed?
The README says version 2.0.0 and later need Node 20.19.0 or above, and earlier releases list their own Vite and Node requirements.
Can I debug my service worker?
Yes. The README says you can debug your custom service worker logic while you develop the application.
Is it free?
Yes. It is open source, and the code and documentation are on GitHub.
What are the best Vite Plugin Pwa alternatives?
Popular alternatives to Vite Plugin Pwa include Astro, Serwist and Vite Plugin Tauri. See all Vite Plugin Pwa alternatives




