Skip to main content

generate_pwa

Function generate_pwa 

Source
pub fn generate_pwa(manifest: &QappManifest) -> PwaBundle
Expand description

Generate a standards-compliant, installable PWA scaffold for a qapp.

Emits three files: manifest.webmanifest (W3C Web App Manifest), sw.js (cache-first service worker for offline capability), and index.html (loader that registers the service worker and instantiates the qapp’s wasm bundle). See the module doc for the secure-origin caveat and the fact that this does not compile wasm.