Zero-config PWA for Vite
4,257
stars
654
commits
TypeScript
primary language
May 5, 2026
updated
Zero-config PWA Framework-agnostic Plugin for Vite
From v0.17,
vite-plugin-pwarequires Vite 5.
From v0.16
vite-plugin-pwarequires Node 16 or above:workbox v7requires Node 16 or above.
From v0.13,
vite-plugin-pwarequires Vite 3.1 or above.
npm i vite-plugin-pwa -D
# yarn
yarn add vite-plugin-pwa -D
# pnpm
pnpm add vite-plugin-pwa -D
Add VitePWA plugin to vite.config.js / vite.config.ts and configure it:
// vite.config.js / vite.config.ts
import { VitePWA } from 'vite-plugin-pwa'
export default {
plugins: [
VitePWA()
]
}
Read the ๐ documentation for a complete guide on how to configure and use this plugin.
Check out the client type declarations client.d.ts for built-in frameworks support.
Check out the type declaration src/types.ts and the following links for more details.
MIT License ยฉ 2020-PRESENT Anthony Fu
(top 30 of 70)
TypeScript
99.6%
Zero-config PWA for Vite
4,257
stars
654
commits
TypeScript
primary language
May 5, 2026
updated
Zero-config PWA Framework-agnostic Plugin for Vite
From v0.17,
vite-plugin-pwarequires Vite 5.
From v0.16
vite-plugin-pwarequires Node 16 or above:workbox v7requires Node 16 or above.
From v0.13,
vite-plugin-pwarequires Vite 3.1 or above.
npm i vite-plugin-pwa -D
# yarn
yarn add vite-plugin-pwa -D
# pnpm
pnpm add vite-plugin-pwa -D
Add VitePWA plugin to vite.config.js / vite.config.ts and configure it:
// vite.config.js / vite.config.ts
import { VitePWA } from 'vite-plugin-pwa'
export default {
plugins: [
VitePWA()
]
}
Read the ๐ documentation for a complete guide on how to configure and use this plugin.
Check out the client type declarations client.d.ts for built-in frameworks support.
Check out the type declaration src/types.ts and the following links for more details.
MIT License ยฉ 2020-PRESENT Anthony Fu
(top 30 of 70)
TypeScript
99.6%