lucide/packages/lucide-static/scripts
Eric Fennis 5fc65e1f1d
fix(lucide-static): add icon aliases to the SVG sprite (#5200)
* docs(static): remove broken <img> sprite fragment example

Symbols in the sprite only render through <use>, so sprite.svg#name in
an <img> tag shows nothing. Point readers to the per-icon SVG files for
<img> usage instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FfpNbRB7XQ9kggfSA1

* feat(lucide-static): add icon aliases to the SVG sprite

Aliases were only written as separate SVG files, so `<use href="#home" />`
did not work with the sprite. Each alias is now added as a symbol that
references the original icon's symbol with a nested `<use>`, instead of
duplicating its elements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FgapYRzb6uRJnZpW7N

* Adjusted documentation

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-16 10:25:14 +01:00
..
buildLib.mts fix(lucide-static): add icon aliases to the SVG sprite (#5200) 2026-11-16 10:25:14 +01:00
copyIcons.mts chore(dev): upgrade ESLint to latest compatible stack (v10) (#4378) 2026-08-18 13:09:22 +02:00
exportTemplate.mts chore(scripts): Refactor scripts to typescript (#3316) 2025-06-18 15:47:24 +02:00
generateIconNodes.mts chore(scripts): Refactor scripts to typescript (#3316) 2025-06-18 15:47:24 +02:00
generateSprite.mts fix(lucide-static): add icon aliases to the SVG sprite (#5200) 2026-11-16 10:25:14 +01:00
migrateIconsToTags.mts chore(typchecking): More typecheck jobs for all packages (#4885) 2026-09-22 13:49:09 +02:00
readSvgs.mts chore(dev): upgrade ESLint to latest compatible stack (v10) (#4378) 2026-08-18 13:09:22 +02:00