★ Escolha do PWA.live: é por onde começarí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.