vite-awesome-svg-loader

SVG loader

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

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

GitHub

11 stars
1 watching
0 forks
Language: TypeScript
last commit: 7 months ago
Linked from 1 awesome list


vite-awesome-svg-loader

SVGO 21,020 about 1 month ago Will minimize your SVGs using

vite-awesome-svg-loader / Examples and demos

source Vanilla JS: , ,
source Vue 3: ,
source React: ,

vite-awesome-svg-loader / Additional information / What are loading/import types (url, source, etc)?

data URI Data URI: either use source code or base64 in a

Backlinks from these awesome lists:

0