lahm-plugin-pwa
v0.16.7
Published
Non-config PWA for Lahm
Downloads
7
Maintainers
Readme
Non-config PWA Framework-agnostic Plugin for Lahm
🚀 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 lahm-plugin-pwa -D
# yarn
yarn add lahm-plugin-pwa -D
# pnpm
pnpm add lahm-plugin-pwa -D
🦄 Usage
Add LahmPWA
plugin to lahm.config.js / lahm.config.ts
and configure it:
// lahm.config.js / lahm.config.ts
import { LahmPWA } from 'lahm-plugin-pwa'
export default {
plugins: [
LahmPWA()
]
}