Awesome Lists

vite-awesome-svg-loader

by matafokka

awesome listTypeScriptpushed over 2 years ago

Imports SVGs as source code, base64 and data URI. Preserves stroke width, replaces colors with currentColor. Optimizes SVGs with SVGO. Creates SVG sprites.

AI summary

SVG loader

A plugin for Vite that optimizes and loads SVG images from various sources, supporting features like stroke width preservation and color replacement.

stars
11
forks
0
watching
1
awesome list
1
entries
5
View on GitHub

Embed the badge

Show how many awesome lists link to your project. The count updates automatically.

Awesome Lists badge
Markdown
[![Awesome Lists Badge](https://awesome.facts.dev/shield/matafokka/vite-awesome-svg-loader/links.svg)](https://awesome.facts.dev/awesome/matafokka/vite-awesome-svg-loader)
HTML
<a href="https://awesome.facts.dev/awesome/matafokka/vite-awesome-svg-loader"><img src="https://awesome.facts.dev/shield/matafokka/vite-awesome-svg-loader/links.svg" alt="Awesome Lists Badge" /></a>
Image URL
https://awesome.facts.dev/shield/matafokka/vite-awesome-svg-loader/links.svg

What's in the list

5 links in 3 sections, with live GitHub stats.activeno commit in 2y

  • SVGO

    Will minimize your SVGs using

Examples and demos

Additional information / What are loading/import types (url, source, etc)?

  • data URI

    Data URI: either use source code or base64 in a

Add a GitHub project

Missing a project or an awesome list? Paste its GitHub URL and we fetch it right away.