Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

262
Vistas
images not showing up after build angular project

i have already finished coding my app and i try to build it to production mode ,and after testing the app , i see that images not showing in the app as logo ... but the the devloppement mode it's ok . this is the tree of my project :

you can see here the structure of the project in production mode

is it neccessary to add webpack to my project to solve this problem ?

i want also to ask you about the function of webpack , because my project is not including webpack and i found that is neccessary to have it my application .

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

Personally i don't even know what it is a webpack (and i'm not proud of it), but i know why you are having that issue.

You should take off the slash in the beginning of the images paths. So you have to use <img src="assets/image.png" and not <img src="/assets/image.png"

just to add on the @CybrRob 's answer.

over 4 years ago · Santiago Trujillo Denunciar

0

just change your path from

<img src="../../assets/g5.jpg" alt="">

to

<img src="assets/g5.jpg"  alt="">
over 4 years ago · Santiago Trujillo Denunciar

0

Angular looks for the images in the assets folder, so in your html, use <img src="assets/image.png" Don't include the "../"

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda