vite-awesome-svg-loader
This is a framework-agnostic Vite plugin that:
- Can import SVGs as:
- Can improve performance of your website by using an alternative SVG loading method.
- Can preserve line width. Images will retain line width regardless of the size.
- Can replace colors with currentColor or a custom color via configuration.
- Automatically minimizes your SVGs with SVGO.
- Allows you to create SVG sprites using optional integrations.
Learn the basics
Section titled “Learn the basics”Demos and examples
Section titled “Demos and examples” Web components Standard custom elements. Declarative and imperative APIs. No framework required.
Vanilla JS Classic object-oriented API. Widest browser support.
Other frameworks Not found what you're looking for? Build your own integration!