From a23914d573841f9088cc9cd69bce24c28f432acf Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Tue, 9 Jun 2020 22:30:28 -0700 Subject: [PATCH] specify all icons path to fix pwa issue, --- public/index.html | 2 +- vue.config.js | 77 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 2cda7e2d6..e38d44448 100644 --- a/public/index.html +++ b/public/index.html @@ -3,7 +3,7 @@ - + <%= htmlWebpackPlugin.options.title %> diff --git a/vue.config.js b/vue.config.js index c244a86e1..51a9b9004 100644 --- a/vue.config.js +++ b/vue.config.js @@ -12,6 +12,83 @@ module.exports = { manifestPath: "assets/manifest.json", appleMobileWebAppStatusBarStyle: "black", appleMobileWebAppCapable: "yes", + name: "Homer Dashboard", + short_name: "Homer", + theme_color: "#3367D6", + icons: [ + { + src: "./assets/icons/android-chrome-192x192.png", + sizes: "192x192", + type: "image/png", + }, + { + src: "./assets/icons/android-chrome-512x512.png", + sizes: "512x512", + type: "image/png", + }, + { + src: "./assets/icons/android-chrome-maskable-192x192.png", + sizes: "192x192", + type: "image/png", + purpose: "maskable", + }, + { + src: "./assets/icons/android-chrome-maskable-512x512.png", + sizes: "512x512", + type: "image/png", + purpose: "maskable", + }, + { + src: "./assets/icons/apple-touch-icon-60x60.png", + sizes: "60x60", + type: "image/png", + }, + { + src: "./assets/icons/apple-touch-icon-76x76.png", + sizes: "76x76", + type: "image/png", + }, + { + src: "./assets/icons/apple-touch-icon-120x120.png", + sizes: "120x120", + type: "image/png", + }, + { + src: "./assets/icons/apple-touch-icon-152x152.png", + sizes: "152x152", + type: "image/png", + }, + { + src: "./assets/icons/apple-touch-icon-180x180.png", + sizes: "180x180", + type: "image/png", + }, + { + src: "./assets/icons/apple-touch-icon.png", + sizes: "180x180", + type: "image/png", + }, + { + src: "./assets/icons/favicon-16x16.png", + sizes: "16x16", + type: "image/png", + }, + { + src: "./assets/icons/favicon-32x32.png", + sizes: "32x32", + type: "image/png", + }, + { + src: "./assets/icons/msapplication-icon-144x144.png", + sizes: "144x144", + type: "image/png", + }, + { + src: "./assets/icons/mstile-150x150.png", + sizes: "150x150", + type: "image/png", + }, + ], iconPaths: { favicon32: "assets/icons/favicon-32x32.png", favicon16: "assets/icons/favicon-16x16.png",