|
|
hai 3 meses | |
|---|---|---|
| .. | ||
| dist | hai 3 meses | |
| node_modules | hai 3 meses | |
| LICENSE | hai 3 meses | |
| README.md | hai 3 meses | |
| client.d.ts | hai 3 meses | |
| index.d.ts | hai 3 meses | |
| info.d.ts | hai 3 meses | |
| package.json | hai 3 meses | |
Zero-config PWA Framework-agnostic Plugin for Vite
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