Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
How can I set the favicon while using expressjs 4 and webpack with SSR enabled?

so I am trying to update the favicon on my React-ts website. I have SSR setup and it uses express 4.17.1 for the server side.

the issue I'm encountering is that the favicon is set in my client.ejs template file as

However once the client and server builds the favicon.ico is not included in the /dist folder so there is no favicon to reference. I have tried manually adding it to the dist folder but I am still getting a 404 resource not found when trying to load the favicon.ico.

I have tried adding the file to the express.static and have also tried setting the favicon under HtmlWebpackPlugin but still no success.

I have seen lots of tutorials online for express favicons and react/webpack favicons but none that have both of the technologies working together.

Any help would be greatly appreciated!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!