All plugins

PWA

Service worker, manifest, and offline caching.

@docmd/plugin-pwa

Overview

Generates a web app manifest, registers a service worker that caches assets and rendered pages using a stale-while-revalidate strategy, and adds full offline installation support.

Installation

docmd add pwa

Install via the docmd CLI, then enable under plugins.pwa in docmd.config.json.

Permissions

Runtime behaviour of this plugin during a build:

CapabilityUsed
Reads project filesYes
Writes to site/Yes
Network requestsNo
Runs subprocessNo

Capabilities

docmd hooks this plugin registers:

assets post-build

Tags

pwaofflineservice-worker