Tous les plugins

PWA

Service worker, manifeste et mise en cache hors ligne.

@docmd/plugin-pwa

Aperçu

Génère un manifeste d'application web, enregistre un service worker avec mise en cache stale-while-revalidate, et ajoute la prise en charge complète de l'installation hors ligne.

Installation

docmd add pwa

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

Autorisations

Comportement d'exécution de ce plugin lors du build :

CapacitéUtilisé
Lit les fichiers du projetOui
Écrit dans site/Oui
Requêtes réseauNon
Exécute des sous-processusNon

Capacités

Hooks docmd enregistrés par ce plugin :

assets post-build

Tags

pwaofflineservice-worker