From 6305e0ce65dba56a3c7fb52f5d03ffc164d46f56 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Tue, 19 Dec 2023 01:22:17 +0100 Subject: [PATCH] Attempting to fix PWA configuration --- favicon/favicon.svg | 46 ++++++++++++++++++++++++++++++++++++++++ favicon/site.webmanifest | 19 ----------------- index.html | 11 +++++----- manifest.webmanifest | 11 +++++++++- vite.config.js | 3 +-- 5 files changed, 63 insertions(+), 27 deletions(-) create mode 100644 favicon/favicon.svg delete mode 100644 favicon/site.webmanifest diff --git a/favicon/favicon.svg b/favicon/favicon.svg new file mode 100644 index 0000000..b152ce8 --- /dev/null +++ b/favicon/favicon.svg @@ -0,0 +1,46 @@ + + + + + + + + + diff --git a/favicon/site.webmanifest b/favicon/site.webmanifest deleted file mode 100644 index fa99de7..0000000 --- a/favicon/site.webmanifest +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "", - "short_name": "", - "icons": [ - { - "src": "/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#ffffff", - "background_color": "#ffffff", - "display": "standalone" -} diff --git a/index.html b/index.html index 83b5b39..3b6607b 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,14 @@ - - + Topos + - - - + + + + diff --git a/manifest.webmanifest b/manifest.webmanifest index 8fb49fd..1d88299 100644 --- a/manifest.webmanifest +++ b/manifest.webmanifest @@ -1,12 +1,21 @@ { "name": "Topos", "short_name": "Topos", - "description": "Live coding environment", "theme_color": "#ffffff", "background_color": "#ffffff", "display": "standalone", "scope": "/", "start_url": "/", + "description": "Topos is a web based live coding platform", + "screenshots": [ + { + "src": "./img/screnshot.png", + "sizes": "640x320", + "type": "image/gif", + "form_factor": "wide", + "label": "Topos application" + } + ], "icons": [ { "src": "./favicon/android-chrome-192x192.png", diff --git a/vite.config.js b/vite.config.js index 22d1e67..b260657 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,10 +4,9 @@ import viteCompression from "vite-plugin-compression"; const vitePWAconfiguration = { devOptions: { - enabled: true, + enabled: false, suppressWarnings: true, }, - workbox: { sourcemap: false, cleanupOutdatedCaches: false,