How to connect favicon to a website in yew.rs?

How to connect favicon to a website in yew.rs?

Problem Description:

I am creating a website through a framework "Yew.rs " and I can’t connect favicon.ico.

I tried to connect it with this method:

<head>
  <link rel="icon" href="favicon.ico"><!-- 32×32 -->
</head>

but it doesn’t work. Can you tell me how I can do this?

Solution – 1

I solved the problem by adding favicon.ico to the "src" folder and adding to index.html :

<link data-trunk rel="copy-dir" href="./src/"> 
<link rel="icon" href=".src/favicon.ico" type="image/x-icon" />
Rate this post
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept
Reject