diff --git a/package.json b/package.json index 767b3dba..051a04ed 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,7 @@ } }, "parcelIgnore": [ - "pwabuilder-sw-register.js", - "pwabuilder-sw.js" + "sw.js" ], "browserslist": [ ">= 0.5%", diff --git a/tools/ci/build-prod.sh b/tools/ci/build-prod.sh index cb72c362..d73569bc 100644 --- a/tools/ci/build-prod.sh +++ b/tools/ci/build-prod.sh @@ -18,5 +18,4 @@ cp web/atlas.json dist/ cp web/*.txt dist/ cp web/_headers dist/ cp web/favicon.ico dist/ -cp web/pwabuilder-sw-register.js dist/ -cp web/pwabuilder-sw.js dist/ \ No newline at end of file +cp web/sw.js dist/ \ No newline at end of file diff --git a/web/_js/pwabuilder-sw-register.js b/web/_js/pwabuilder-sw-register.js deleted file mode 100644 index 743cdd88..00000000 --- a/web/_js/pwabuilder-sw-register.js +++ /dev/null @@ -1,6 +0,0 @@ -import 'https://cdn.jsdelivr.net/npm/@pwabuilder/pwaupdate' - -const el = document.createElement('pwa-update') -// el.swpath = "/_js/pwabuilder-sw.js"; -// console.log(el.swpath) -document.body.appendChild(el) \ No newline at end of file diff --git a/web/index.html b/web/index.html index 9c438e0d..a210e839 100644 --- a/web/index.html +++ b/web/index.html @@ -41,7 +41,7 @@ - + + \ No newline at end of file diff --git a/web/pwabuilder-sw.js b/web/sw.js similarity index 100% rename from web/pwabuilder-sw.js rename to web/sw.js