fix PWA creation & service-worker registration, plus some commentary tweaks

This commit is contained in:
2024-04-09 20:29:21 -06:00
parent 30bd53fb6f
commit 0093255246
9 changed files with 1924 additions and 355 deletions

View File

@@ -6,9 +6,8 @@
"dev": "vite",
"serve": "vite preview",
"build": "VITE_GIT_HASH=`git log -1 --pretty=format:%h` vite build",
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src",
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src",
"lint-fix": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src",
"postbuild": "cp ./sw_scripts-combined.js dist/",
"prebuild": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src && node sw_combine.js"
},
"dependencies": {
@@ -87,6 +86,7 @@
"prettier": "^3.2.5",
"tailwindcss": "^3.4.1",
"typescript": "~5.2.2",
"vite": "^5.2.0"
"vite": "^5.2.0",
"vite-plugin-pwa": "^0.19.8"
}
}