0.16.7 • Published 25 days ago

wite-plugin-pwa v0.16.7

Weekly downloads
-
License
MIT
Repository
github
Last release
25 days ago

Non-config PWA Framework-agnostic Plugin for Wite

🚀 Features

  • 👌 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, Kdu 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
  • 💥 PWA Assets Generator: generate all the PWA assets from a single command and a single source image

📦 Install

npm i wite-plugin-pwa -D 

# yarn 
yarn add wite-plugin-pwa -D

# pnpm 
pnpm add wite-plugin-pwa -D

🦄 Usage

Add WitePWA plugin to wite.config.js / wite.config.ts and configure it:

// wite.config.js / wite.config.ts
import { WitePWA } from 'wite-plugin-pwa'

export default {
  plugins: [
    WitePWA()
  ]
}