Open sodic opened 4 months ago
Some users wanted to use favicon.svg
to set up their favicon, but our default favicon gets copied alongside theirs and overrules their svg
favicon!
Having our favicon.ico
in the public
dir would prevent this from happening, although I'm not sure if users would need to setup their own meta tags in the head e.g. <link rel="shortcut icon" href="/favicon.ico" />
Both SVG and .ico are well-supported favicon formats. We should change Wasp to look for a file named favicon.ico|svg
and template the head tag to use whatever it finds.
@infomiho Having this issue. How do I prevent your favicon from overwriting mine?
You need to use a gavivon with ico extension 😃
You need to use a gavivon with ico extension 😃
Sorry I don't understand - what's gavivon?
@simasima121 He mean favicon :sweat_smile:
Make sure your favicon is called favicon.ico
.
Worked for me thanks was driving me mad trying to figure out why it was not updating. In my case I had a .png and on a macbook converted it as follows:
brew install imagemagick
magick favicon.png -define icon:auto-resize=16,32,48 favicon.ico
Thanks for sharing your process @petebytes. It might help someone in the future!
Implement what Miho suggested here: https://github.com/wasp-lang/wasp/issues/1622#issuecomment-2016422324.
Instead of magically generating the default
favicon.ico
and telling users they can override it by placing their own in the public directory, we should just place the default one in the public directory. This change would:.gitkeep
file.favicon.ico
(they trip over this every now and then, e.g., here and here).What needs to be done:
favicon.ico
generation (obviously :)).