X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=vue.config.js;h=8e84dfe4bf2a72724d55466e4dce2f4959082806;hb=5b727eee020b9d734f60fd37f840ea47f83fb23e;hp=07d9589c2a5cf34a8dda428ca3037c10335ef6c0;hpb=b04e718367297b95aedad2efb2c74bfd8e3be37f;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/vue.config.js b/vue.config.js index 07d9589..8e84dfe 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,3 +1,5 @@ +const manifestOptions = require("./public/assets/manifest.json"); + module.exports = { chainWebpack: (config) => { config.module @@ -10,50 +12,11 @@ module.exports = { publicPath: "", pwa: { manifestPath: "assets/manifest.json", - manifestOptions: { - start_url: "../", - }, appleMobileWebAppStatusBarStyle: "black", appleMobileWebAppCapable: "yes", - name: "Homer Dashboard", - short_name: "Homer", - theme_color: "#3367D6", - icons: [ - { - src: "./icons/favicon-16x16.png", - sizes: "16x16", - type: "image/png", - }, - { - src: "./icons/favicon-32x32.png", - sizes: "32x32", - type: "image/png", - }, - { - src: "./icons/icon-any.png", - sizes: "512x512", - type: "image/png", - purpose: "any", - }, - { - src: "./icons/icon-any.svg", - sizes: "any", - type: "image/svg+xml", - purpose: "any", - }, - { - src: "./icons/icon-maskable.png", - sizes: "512x512", - type: "image/png", - purpose: "maskable", - }, - { - src: "./icons/safari-pinned-tab.svg", - sizes: "any", - type: "image/svg+xml", - purpose: "monochrome", - }, - ], + name: manifestOptions.name, + themeColor: manifestOptions.theme_color, + manifestOptions, iconPaths: { favicon32: "assets/icons/favicon-32x32.png", favicon16: "assets/icons/favicon-16x16.png",