Nexanexa
Paso 13

PWA declarativo

nexa add pwa agrega un bloque [pwa] real a nexa.toml — nexa build genera un manifest.webmanifest y un service worker de verdad, no una plantilla vacía.

Declarar el manifest

# nexa.toml
[pwa]
name = "Mi App"
themeColor = "#C8102E"
icon = "/icon-512.png"

name, icon, colores y modo de visualización — todo real, sin escribir un manifest.json a mano.

Reglas de caché

[pwa.cache]
"/assets" = "cache-first"
"/api" = "network-first"

cache-first, network-first o stale-while-revalidate por prefijo de ruta, declarado en [pwa.cache].