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
Here is how I did.
I have added the generated favicon links.
...
new HTMLWebpackPlugin({
template: '/path/to/index.html',
favicon: '/path/to/favicon.ico',
})
I use historyApiFallback in dev mode, but I didn't need to have any extra setup to get the favicon work nor on the server side.