JSPM

lahm-plugin-pwa

0.16.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q12058F
  • License MIT

Non-config PWA for Lahm

Package Exports

  • lahm-plugin-pwa
  • lahm-plugin-pwa/client
  • lahm-plugin-pwa/info
  • lahm-plugin-pwa/kdu
  • lahm-plugin-pwa/preact
  • lahm-plugin-pwa/react
  • lahm-plugin-pwa/solid
  • lahm-plugin-pwa/svelte
  • lahm-plugin-pwa/types
  • lahm-plugin-pwa/vanillajs

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()
  ]
}