Suriya Kumar
1 min readJan 31, 2019

--

Hi ,

Nice article.

I want to know how to load images using stencil.I have created a sample app using the stencil and put my images in assets folder under src.When i use <img src=’/assets/some.png /> working fine in development.But when I use this component in any other app I have received “http://localhost/assets/some.png “ 404. The assets folder successfully placed under WWW directory during production build but still 404. Can anyone tell me how to load images in stencil web component!?

Thanks,

Suriya

--

--

Suriya Kumar
Suriya Kumar

Written by Suriya Kumar

Senior Software Engineer at AngelOne #Javascript #ReactJS

Responses (1)