split off from wabac.js:

- add pageembeds.js for now
- new webpack build, use /sw.js in prod, /dist/sw.js in dev to work with webpack-dev-server single directory
- add wombat dependency and webpack build
This commit is contained in:
Ilya Kreymer
2020-05-02 11:27:48 -07:00
parent 47108dc7d8
commit e023726fd2
15 changed files with 6323 additions and 2 deletions
+2 -2
View File
@@ -136,7 +136,7 @@ class WrLoader extends LitElement
this.state = "waiting";
this.loadInfo = null;
this.worker = new Worker("./dist/dbworker.js");
this.worker = new Worker(__SW_PATH__);
}
static get properties() {
@@ -1350,7 +1350,7 @@ class WrFaIcon extends LitElement
// ===========================================================================
async function main() {
const swPromise = initSW("./swonly.js?replayPrefix=wabac&stats=true");
const swPromise = initSW(__SW_PATH__ + "?replayPrefix=wabac&stats=true");
await swPromise;
customElements.define("app-main", AppMain);
customElements.define("wr-index", WrIndex);