@vite-pwa/workbox-window
v8.0.0
Published
Simplifies communications with Workbox packages running in the service worker
Downloads
464
Readme
🚀 Features
- 📖 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, and Nuxt 3
- 💥 PWA Assets Generator: generate all the PWA assets from a single command and a single source image
🛠️ @vite-pwa/workbox-window
ESM build of workbox-window.
This module's documentation can be found at https://developers.google.com/web/tools/workbox/modules/workbox-window.
@vite-pwa/workbox-window
includes missing installing
event in Workbox
class.
📦 Install
# pnpm
pnpm add @vite-pwa/workbox-window
# npm
npm i @vite-pwa/workbox-window
# yarn
yarn add @vite-pwa/workbox-window
🦄 Usage
// ESM
import { Workbox } from '@vite-pwa/workbox-window'
// CommonJS
const { Workbox } = require('@vite-pwa/workbox-window')