Open lkho opened 3 years ago
Hi everyone, I feel like this is still not working. At least not on my machine. Any thing we can do to get it fixed or #6203 merged?
pwa.iconPaths
only modifies the link and meta tags in the head.
https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js#L88
iconPaths: {
favicon32: `img/${iconsDir}/favicon-32x32.png`,
favicon16: `img/${iconsDir}/favicon-16x16.png`,
appleTouchIcon: `img/${iconsDir}/apple-touch-icon-152x152.png`,
maskIcon: `img/${iconsDir}/safari-pinned-tab.png`,
msTileImage: `img/${iconsDir}/msapplication-icon-144x144.png`
},
But, pwa.manifestOptions.icons
must be added to modify the icon path in manifest.json.
Version
5.0.0-alpha.2
Environment info
Steps to reproduce
pwa.iconPaths
section invue.config.js
, specify some paths other than the default ones.What is expected?
meta tags should be using the iconPaths
What is actually happening?
meta tags are still default
The config is being mutated, during the webpack config chain. However, it appears that the chain is being executed multiple times, and thus the config value is dropped in the subsequence calls. https://github.com/vuejs/vue-cli/blob/637414cb6972ff5600f5e37c4e2762a88478c873/packages/%40vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js#L58
related issues: https://github.com/vuejs/vue-cli/issues/4069 (is closed, but actually the problem is not yet solved)