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

825
Views
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
2 answers
Answer question

0

Personally, I don't even know what a webpack is (and I'm not proud of it), but I know why you have that problem.

You must remove the slash at the beginning of image paths. So you have to use <img src="assets/image.png" and not <img src="/assets/image.png"

just to add @CybrRob's answer.

over 4 years ago · Santiago Trujillo Report

0

Angular looks for the images in the assets folder, so in your html, use <img src="assets/image.png/>" without including the "/"

over 4 years ago · Santiago Trujillo Report
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!