Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

128
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda