mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-23 20:23:37 +08:00
2.1 KiB
2.1 KiB
SVG icons and generation
Use this topic when adding or moving icons, or investigating icon types, symbol IDs, spritemap URLs, or hot updates.
| Question | Read first | Follow through |
|---|---|---|
| Assets, groups, and naming | Maintenance guide, SVG assets | Public package entry points, application adapter |
| Manifest, types, generation, and HMR | Generator, root script | Vite adapter, plugin configuration |
| Rendering, application injection, and reader usage | RIcon, application icon service | Icon demo, reader reference |
The SVG files and generator are authoritative; pnpm icons:generate updates manifest.ts. Moving a group can change full icon names. Check references in menus, route configuration, and caches, as well as production asset URLs.
Targeted verification: pnpm harness verify icons includes icons:check and the generation and HMR regressions. Do not repeat the manifest check separately. For asset path changes, check production previews using the browser verification rules.