Esta página aún no está disponible en Español, así que estás leyendo la versión en inglés.

vite-plugin-pwa

Zero-config PWA support for Vite: generates the manifest and a Workbox service worker with your build files precached, with update hooks for React, Vue, Svelte, Solid, Preact and Lit.

★ Elegido por PWA.live: por aquí empezaríamos.

Zero-config PWA support for Vite: generates the manifest and a Workbox service worker with your build files precached, with update hooks for React, Vue, Svelte, Solid, Preact and Lit.

When to use it

Your app is built with Vite. It is the default choice for Vite projects.

Get started

npm i -D vite-plugin-pwa
import { VitePWA } from 'vite-plugin-pwa';
export default { plugins: [VitePWA({ registerType: 'prompt', manifest: { name: 'My App', short_name: 'App' } })] };

Source code, issues and documentation: github.com/vite-pwa/vite-plugin-pwa.