loading...

re: How to Generate a Favicon for Your React App VIEW POST

FULL DISCUSSION
 

Hi Reed!
I just followed your article. I managed to avoid putting the generated files in the root of the static folder (I mean, 'static' in the react folder 'build'). I created a new folder - 'favicon' in the react folder 'public' and put files into it. Then in 'href' I used a prefix '%PUBLIC_URL%/favicon'
For example:
href="%PUBLIC_URL%/favicon/favicon-32x32.png"

Thank you for your articles!

p.s. for my self: We have to leave only one <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> or <link rel="manifest" href="%PUBLIC_URL%/favicon/site.webmanifest" /> in index.html

Code of Conduct Report abuse