Skip to main content
edited title
Link
Mark Cassidy
  • 25.4k
  • 7
  • 59
  • 117

JSS - How to add a favicon in the root of the app

Source Link

JSS - add a favicon in the root of the app

  1. JSS
  2. VueJs sample
  3. Tech preview 3

I tried to add favicons in /assets/favicon-16x16.png

Then, in /src/app/ServerHtml.js, I added:

<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />

or

<link rel="icon" type="image/png" sizes="16x16" href={`${this.distPath}favicon-16x16.png`} />

But I have a 404 error...

Can you help me ? Thanks