I am looking for a way to put images in the Angular Component Library. I mean img[src]. As for background-image, the library finds images from the assets folder, but if I try to attach images to img[src], it doesn't work. I also tried different src paths, absolute and relative. I know the base64 way, but is there anything else? I'm using Angular v12 and my ng-package.json looks like below:
  "assets": [
    "/assets/**/*",
    "/styles.scss",
    "/styles/**/*.scss"
  ]
In angular project below code works just fine:
<img src="/assets/img/foo.jpg"> 
but it does NOT work in angular library
 
    