简体   繁体   中英

Issue with static assets in angular library (png/svg)

I'm in the processs of creating an angular library that contains two static images (.svgs, but I have tried with .png) The issue is that I'm getting 404 not found on the images, and I have tried almost everything to make it work. Here's the folder structure:

在此处输入图片说明

Here's a similar problem without answer: How to add svg images in angular library?

Any ideas?

尝试像这样编写 src 路径: ../../assets/icons/toggleOn.svg

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM