Fixing PWA for good
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
"typescript": "^5.2.2",
|
||||
"vite": "^4.4.5",
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
"vite-plugin-pwa": "^0.16.7"
|
||||
"vite-plugin-pwa": "^0.17.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@codemirror/lang-javascript": "^6.1.9",
|
||||
|
||||
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
BIN
public/favicon/topos_code.png
Normal file
BIN
public/favicon/topos_code.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
@ -10,6 +10,7 @@ const vitePWAconfiguration = {
|
||||
workbox: {
|
||||
sourcemap: false,
|
||||
cleanupOutdatedCaches: false,
|
||||
maximumFileSizeToCacheInBytes: 10000000,
|
||||
globPatterns: [
|
||||
"**/*.{js,js.gz,css,html,gif,png,json,woff,woff2,json,ogg,wav,mp3,ico,png,svg}",
|
||||
"favicon/*.{js,js.gz,css,html,gif,png,json,woff,woff2,json,ogg,wav,mp3,ico,png,svg}",
|
||||
@ -35,7 +36,7 @@ const vitePWAconfiguration = {
|
||||
},
|
||||
],
|
||||
},
|
||||
manifest: "manifest.webmanifest",
|
||||
manifest: false,
|
||||
registerType: "autoUpdate",
|
||||
injectRegister: "script-defer",
|
||||
};
|
||||
|
||||
12
yarn.lock
12
yarn.lock
@ -2203,7 +2203,7 @@ fast-glob@^3.2.12:
|
||||
merge2 "^1.3.0"
|
||||
micromatch "^4.0.4"
|
||||
|
||||
fast-glob@^3.3.1:
|
||||
fast-glob@^3.3.2:
|
||||
version "3.3.2"
|
||||
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129"
|
||||
integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==
|
||||
@ -3774,13 +3774,13 @@ vite-plugin-markdown@^2.1.0:
|
||||
htmlparser2 "^6.0.0"
|
||||
markdown-it "^12.0.0"
|
||||
|
||||
vite-plugin-pwa@^0.16.7:
|
||||
version "0.16.7"
|
||||
resolved "https://registry.yarnpkg.com/vite-plugin-pwa/-/vite-plugin-pwa-0.16.7.tgz#3dcacc342766ff3598472ac7d5e0782d14e2853e"
|
||||
integrity sha512-4WMA5unuKlHs+koNoykeuCfTcqEGbiTRr8sVYUQMhc6tWxZpSRnv9Ojk4LKmqVhoPGHfBVCdGaMo8t9Qidkc1Q==
|
||||
vite-plugin-pwa@^0.17.4:
|
||||
version "0.17.4"
|
||||
resolved "https://registry.yarnpkg.com/vite-plugin-pwa/-/vite-plugin-pwa-0.17.4.tgz#be3b3714d4148681bc73e8e0b1e6ce1a71fa79f2"
|
||||
integrity sha512-j9iiyinFOYyof4Zk3Q+DtmYyDVBDAi6PuMGNGq6uGI0pw7E+LNm9e+nQ2ep9obMP/kjdWwzilqUrlfVRj9OobA==
|
||||
dependencies:
|
||||
debug "^4.3.4"
|
||||
fast-glob "^3.3.1"
|
||||
fast-glob "^3.3.2"
|
||||
pretty-bytes "^6.1.1"
|
||||
workbox-build "^7.0.0"
|
||||
workbox-window "^7.0.0"
|
||||
|
||||
Reference in New Issue
Block a user