Inside sprite.svg
This demo imports 270 SVG files. At build time the plugin merges them into one
file, sprite.svg. Opened on its own the file looks blank: a sprite only defines
<symbol> elements, and a symbol is drawn where a
<use href="sprite.svg#id"> points at it. Below, every symbol is drawn
from that one file.
- Input 270 SVG files 265 flags + 5 UI icons · 175.6 KB
- Build rspack-plugin-svg-sprite loader + plugin, extract mode
- Output 1 file, … symbols · 1 request
Open the raw file Download sprite.svg Back to the demo
The start of sprite.svg, as written