pwa icon indicating copy to clipboard operation
pwa copied to clipboard

PWA themeColor is not picking value from manifest.json file

Open stripathix opened this issue 5 years ago • 2 comments

Even after changing the value of theme_color in the manifest file. On doing dist build index.html still uses default vue color #4DBA87

Manifest file

{
  "name": "Application name",
  "short_name": "Application name",
  "icons": [
    {
      "src": "./img/icons/android-chrome-192x192.png",
      "sizes": "192x192",
      "type": "image/png"
    },
    {
      "src": "./img/icons/android-chrome-512x512.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ],
  "start_url": "./index.html",
  "display": "standalone",
  "background_color": "#3d3d3d",
  "theme_color": "#3d3d3d"
}

In index.html after build it still has <meta name=theme-color content=#4DBA87>

stripathix avatar Jan 09 '19 08:01 stripathix

I have the same issue. Any advise to correct this?

alexandrestein avatar Feb 25 '19 12:02 alexandrestein

I had this issue, in your vue.config.js add

...
module.exports = {
  pwa: {
    ...
    themeColor: '#000',
    msTileColor: '#000',
    ...
  },
...

michaelmano avatar Jun 07 '19 00:06 michaelmano