Reputation: 188
I have created React application and bundled it using nw-react-scripts
. I am trying to add icon for taskbar, but icon doesn't change. Always I see default icon. I tried by clearing appData as well. I have used below method in my package.json
to add icon. Help me out in resolving this issue.
"window": {
"icon":"src/image/logo.png"
}
Thanks in advance
Upvotes: 1
Views: 262
Reputation: 2938
If am getting it right, this would work.
In your HTML template (usually index.html
or template.html
, try this:
<link rel="icon" href="/path/to/your/favicon.ext">
replace the href with your icon path. it's favorable to name it favicon.png
instead of logo.png
.
If am wrong, can you please tell what TASK BAR ICON MEANS?
Upvotes: 0