I am attempting to add a favicon to a React-based website that I made using webpack. It has been a total nightmare to add a favicon and I have tried many solutions to no ava
In my case -- I am running Visual Studio (Professional 2017) in debug mode with webpack 2.4.1 -- it was necessary to put the favicon.ico
into the root directory of the project, right where the folder src
is rather than in a folder public
, even though according to https://create-react-app.dev/docs/using-the-public-folder the latter should be the official location.