mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
lucide-static's font CSS references all five webfont formats (eot, ttf, svg, woff, woff2), so Vite emitted ~23 MB of icon fonts into the web panel; the SVG font alone was ~20.6 MB. All of them render the same glyphs. scripts/lucide-font.mjs now regenerates src/assets/lucide-font.css from the upstream CSS with a woff-only @font-face (woff is supported by every browser since IE9) and runs automatically via the prebuild/preserve hooks, so a lucide-static upgrade stays in sync. The build output drops from ~23 MB of font files to a single ~414 KB woff while keeping all icon classes.