fix(pwa): improvements to the PWA configuration

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-08-11 12:18:52 +02:00
parent 2e08aa2573
commit 04c5ac1163
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -19,11 +19,10 @@ export default defineConfig(({ command }) => {
plugins: [
vue(),
VitePWA({
// registerType: "autoUpdate",
registerType: "autoUpdate",
strategies: "injectManifest",
srcDir: "src",
filename: "service-worker.ts",
theme_color: "#ffd599",
// injectRegister: "auto",
// devOptions: {
// enabled: true,
@ -32,6 +31,7 @@ export default defineConfig(({ command }) => {
name: "Mobilizon",
short_name: "Mobilizon",
orientation: "portrait-primary",
theme_color: "#ffd599",
icons: [
{
src: "./img/icons/android-chrome-192x192.png",