- ๐ Documentation & guides
- ๐ Zero-Config: sensible built-in default configs for common use cases
- ๐ฉ Extensible: expose the full ability to customize the behavior of the plugin
- ๐ฆพ Type Strong: written in TypeScript
- ๐ Offline Support: generate service worker with offline support (via Workbox)
- โก Fully tree shakable: auto-inject Web App Manifest
- ๐ฌ Prompt for new content: built-in support for Vanilla JavaScript, Vue 3, React, Svelte, SolidJS and Preact
- โ๏ธ Stale-while-revalidate: automatic reload when new content is available
- โจ Static assets handling: configure static assets for offline support
- ๐ Development Support: debug your custom service worker logic as you develop your application
- ๐ ๏ธ Versatile: integration with meta frameworks: รฎles, SvelteKit, VitePress, Astro, Nuxt 3 and Remix
- ๐ฅ PWA Assets Generator: generate all the PWA assets from a single command and a single source image
- ๐ PWA Assets Integration: serving, generating and injecting PWA Assets on the fly in your application
Version v1.0.0: updated all the templates to use Vite 7, including also the latest frameworks changes.
Version v0.6.0: updated all the templates to use Vite 6, including also the latest frameworks changes.
Use version v0.5.0 for Vite 5 and previous versions of the frameworks.
Since the package name begins with create-, it is considered a project generator and can be run simply as @vite-pwa/pwa.
This command launches an interactive questionnaire in the command line for configuring different parts of the project.
# npm
npm create @vite-pwa/pwa@latest
# yarn
yarn create @vite-pwa/pwa
# pnpm
pnpm create @vite-pwa/pwa
# bun
bun create @vite-pwa/pwaThen follow the prompts!
Read the ๐ documentation for a complete guide on how to use it.
Our plan is to release the first version when all Vite templates are ready:
-
VanillaJSandTypeScripttemplates -
VueandVue + TypeScripttemplates -
LitandLit + TypeScripttemplates -
SvelteandSvelte + TypeScripttemplates -
ReactandReact + TypeScripttemplates -
PreactandPreact + TypeScripttemplates -
SolidJSandSolidJS + TypeScripttemplates
Later we will add support for meta-frameworks:
-
Nuxt 4template (fromv1.0.0) -
Nuxt 3template (fromv0.1.0): from versionv1.0.0(deprecated) -
Nuxt 3 Compatibility Version 4 (Nuxt 4)template (fromv0.4.0) (deprecated) -
SvelteKittemplate (fromv0.2.0) -
Astrotemplate -
Remixtemplate (fromv0.3.0) -
VitePresstemplate -
Qwik Citytemplate
You can check the progress in the TODO file, previous task lists will be also updated.
If you want to contribute, read the CONTRIBUTING guide.
MIT License ยฉ 2024-PRESENT Anthony Fu
