vuejs-templates / pwa

PWA template for vue-cli based on the webpack template
MIT License
3.04k stars 508 forks source link

PWA themeColor is not picking value from manifest.json file #203

Open stripathix opened 5 years ago

stripathix commented 5 years ago

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>

alexandrestein commented 5 years ago

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

michaelmano commented 5 years ago

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

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