This package is the PWA (progressive-web-app) extension for Wapplr.
//client.js
import wapplrPwa from "wapplr-pwa";
import wapplrClient from "wapplr";
const wapp = wapplrClient({config: {
globals: {
DEV: false //if the DEV global variable was set to true the PWA clear cache when the page loading.
}
}
});
wapplrPwa({wapp});
wapp.client.listen();
MIT