basic service worker registration via workbox

ref #7
This commit is contained in:
2020-12-23 19:10:50 +01:00
parent 9a53e32691
commit 13b6b32041
4 changed files with 21 additions and 0 deletions

7
workbox-config.js Normal file
View File

@@ -0,0 +1,7 @@
module.exports = {
"globDirectory": "public/",
"globPatterns": [
"**/*.{js,ico,png,svg,html,txt}"
],
"swDest": "public/sw.js"
};