Description
The app icon images that are generated seem to use the default/initial icon.png image for icon generation when using the default icon.png filename. I tried different configurations to get it to refresh, and I ended up having to build once using an alternate filename, and then switch the filename back to the original, then build again, in order to allow the new icon.png file to be used.
Nuxt version: 2.14.5 and 2.14.6
This occurred in both @nuxt/pwa v3.0.0-beta20 and v3.0.2
Initial run. No options added to config. I updated icon.png file in static dir folder. Result: The new icon.png image was not used to generate icon files, instead the old icon.png file was used.
pwa:{ },
Next attempt: Setting the values in the options also did not use new icon.png image, still the old icon.png image was used.
pwa:{
icon:{
source: '/static/icon.png',
fileName: 'icon.png'
},
},
Finally got a new image to be used for generation by first changing the filename+source to a different file,
pwa:{
icon:{
source: '/static/icon-alt.png',
fileName: 'icon-alt.png'
},
},
I then changed the icon config back to the default filename, added a new icon.png file to the static directory, ran build, and the new icon.png file was used correctly.
pwa:{
icon:{
source: '/static/icon.png',
fileName: 'icon.png'
},
},