From 9e2373919c4ae4449a352555a143590d5cc740d7 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 25 Mar 2023 23:52:24 -0400 Subject: [PATCH] Start work on fixing pwa --- web-frontend/.gitignore | 1 + web-frontend/package.json | 3 +- web-frontend/src/routes/+layout.svelte | 29 +++++ web-frontend/vite.config.js | 11 +- web-frontend/yarn.lock | 171 +++++++++++++++---------- 5 files changed, 144 insertions(+), 71 deletions(-) diff --git a/web-frontend/.gitignore b/web-frontend/.gitignore index 231f918..2031bf5 100644 --- a/web-frontend/.gitignore +++ b/web-frontend/.gitignore @@ -9,3 +9,4 @@ src/lib/docs/ /.svelte-kit vite.config.js.timestamp-* vite.config.ts.timestamp-* +/dev-dist/ diff --git a/web-frontend/package.json b/web-frontend/package.json index b8b0627..7935f22 100644 --- a/web-frontend/package.json +++ b/web-frontend/package.json @@ -15,6 +15,7 @@ "@sveltejs/adapter-auto": "^2.0.0", "@sveltejs/adapter-static": "^2.0.1", "@sveltejs/kit": "^1.5.0", + "@vite-pwa/sveltekit": "^0.2.1", "autoprefixer": "^10.4.13", "eslint": "^8.28.0", "eslint-config-prettier": "^8.5.0", @@ -30,7 +31,7 @@ "tailwindcss": "^3.2.7", "typescript": "^4.9.3", "vite": "^4.1.4", - "vite-plugin-pwa": "^0.14.4", + "vite-plugin-pwa": "^0.14.6", "vite-plugin-wasm-pack": "^0.1.12" }, "type": "module", diff --git a/web-frontend/src/routes/+layout.svelte b/web-frontend/src/routes/+layout.svelte index f67af0c..9874417 100644 --- a/web-frontend/src/routes/+layout.svelte +++ b/web-frontend/src/routes/+layout.svelte @@ -1,7 +1,36 @@ + + {@html webManifest} + +