angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Angular library asset images are not accessible in consumer app production build.

Open vishal4799 opened this issue 7 years ago • 2 comments

I have an angular library named common-sec in which created assets folder manually under the lib folder. I used images from the assets folder in my library component. named "login".

I have used login component from common-sec library in my main angular app.

By running main app with ng serve, library images of assets folder loading perfectly. But when i build my main app using ng build --prod --base-href /prefix/, none of library images rendedred.

I see it tries to request images at localhost:4200/assets/image.png (return 404) But i see images are available at ocalhost:4200/prefix/assets/image.png

Is it a bug or it's known issue in angular-cli?

vishal4799 avatar Jun 21 '19 05:06 vishal4799

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular-cli.

If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.

alan-agius4 avatar Jun 21 '19 05:06 alan-agius4

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.