@vite-pwa/workbox-window
TypeScript icon, indicating that this package has built-in type declarations

8.0.0 • Public • Published

ESM build of workbox-window

NPM version NPM Downloads Docs & Guides
GitHub stars


🚀 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')

📄 License

MIT

Package Sidebar

Install

npm i @vite-pwa/workbox-window

Weekly Downloads

84

Version

8.0.0

License

MIT

Unpacked Size

76.9 kB

Total Files

7

Last publish

Collaborators

  • userquin
  • antfu