ITADN

How to load shared component library (JS + CSS) via CDN?

#1107Closedninjacoder77 创建于 2025-07-13
question
N
ninjacoder77commented
I’m working with multiple libraries built using Web Components. Each of them depends on a shared icon component library, also built with Web Components. Currently, I copy the built JS and CSS files from the icon library into each of my other libraries manually. This works but is not ideal, as every time I update the icon library, I need to replicate these changes in all dependent libraries. Is there a recommended way to load a shared component library (including its JS and CSS) from a CDN, so I don’t have to copy and update the files manually every time? Sorry if this is not the right place to ask. Any guidance would be appreciated! Thanks!
关闭于 2025-07-13 3 条评论