Koushik Reddy U
Koushik Reddy U

Reputation: 188

Not able to add taskbar icon to node webkit application

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"
}

enter image description here

Thanks in advance

Upvotes: 1

Views: 262

Answers (1)

Sultan H.
Sultan H.

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

Related Questions