jpkleemans / vite-svg-loader

Vite plugin to load SVG files as Vue components
MIT License
585 stars 61 forks source link

style tag are gone #14

Closed yoyoys closed 3 years ago

yoyoys commented 3 years ago

If svg file contains style tag. There will only render defs tag without style tag.

This plugin should have more options such as prefixIds.

jpkleemans commented 3 years ago

Hi, all styles should be added inline. You can use SVGO to convert your SVG's

jpkleemans commented 2 years ago

There are options to preserve the styling. See https://github.com/jpkleemans/vite-svg-loader/issues/56#issuecomment-1160290025