vite-font-extractor-plugin

Extract only the glyphs you use. Drop font sizes by 90%+.

Proof: Minification Works

Left column: icons included in config — render correctly.
Right column: icons NOT in config — render as empty boxes (glyphs were stripped).

Included in config

close menu search home

NOT in config

alarm bluetooth camera wifi

Visual Proof — Pixel Font Subset

Press Start 2P (pixel font) subset to only 5 characters: H, e, l, o, !
Pixel characters = present in subset. Normal characters = browser fallback (glyph was stripped).

Hello! ← all pixel
Help me! ← "p", "m", "i" fall back
Hello World ← "W", "r", "d" fall back
Good morning ← all fall back except "o"

If you see mixed pixel + normal characters, subsetting works correctly.

File Size Comparison

Actual sizes fetched at runtime from built assets.

Font Original After plugin Reduction
Loading...