jpkleemans/vite-svg-loader

color disappear

Closed this issue · 3 comments

when i was using the order'?component', my illustration missed partial color.
test

Hi, have you tried disabling SVGO? See https://github.com/jpkleemans/vite-svg-loader#disable-svgo

zumm commented

Also this is may be issue related to Vue3 parser. It doesn't allow use <style> and <script> tags inside component, so if your svg uses these tags it may be corrupted. I'm facing this issue right now.

@zumm Yes that' s right. Those kinds of "complex" svg's are tricky to support. In such case, it's better to make a vue component out of it yourself.