When pathPrefix is set, for instance for building to Github Pages, the favicons are not generated into the correct directory.
Take a starter project, say Gridsome-starter-default. Change pathPrefix in gridsome.config.js. Yarn Build.
Favicons should build into the top level of the dist directory
Favicons are in a subdirectory of the dist directory, one level lower than the rest of the build
Also want to point out some anomalies:
I don't know why the value of pathPrefix should affect the building process, but probably there is a bad code evaluating the pathPrefix somewhere. I suspect gridsome/lib/webpack/createBaseConfig.js
This is happening with more than just favicons. Any image that I use the <g-image> tag for that would normally be put in the dist/assets/static get put in dist/ssets/static when I use pathPrefix: '/training and all of the *.png files in that folder now have an extension of *.p. and just as @kaceo mentioned different pathPrefixes will get different broken results.
@roborich Yes, it was a bad use of pathPrefix in the image process queue. The commit above does fix the issue. I'll publish it later today.