mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
lucide-static's stylesheet declares eot, woff2, woff, ttf and a legacy SVG font for all 2112 icons, so Vite copied every format into web/ and the embedded binary grew from about 26 MB to 48 MB; the SVG font alone is 20 MB of glyph outlines. The interface uses 44 icons. A Vite plugin (gui/build/lucide-subset.mjs) scans src/ for icon names — class usage, icon props, dialog options and the Buefy pack's internalIcons — subsets lucide.woff2 to those glyphs with subset-font and serves the result as a virtual stylesheet with the 8 KB font inlined. A name the font does not have fails the build naming it, where it used to render an empty box.