
How to Create SVG Sprite With Icons
Get every episode summarized
Each time Programming Tech Brief By HackerNoon publishes, we email you a written briefing from the transcript — the topics, who appeared, and any specific claims, with the ad reads skipped.
Email me new episodesFree for 3 shows. No card needed.
About this episode
This story was originally published on HackerNoon at: https://hackernoon.com/how-to-create-svg-sprite-with-icons.
The best way to use SVG icons is to create an SVG sprite. Here's an easy tutorial for beginners and pros alike.
Check more stories related to programming at: https://hackernoon.com/c/programming.
You can also check exclusive content about #frontend, #svg, #webpack, #vite, #how-to-create-svg-sprite, #what-is-svg-sprite, #how-to-create-icons, #hackernoon-top-story, #hackernoon-es, #hackernoon-hi, #hackernoon-zh, #hackernoon-fr, #hackernoon-bn, #hackernoon-ru, #hackernoon-vi, #hackernoon-pt, #hackernoon-ja, #hackernoon-de, #hackernoon-ko, #hackernoon-tr, and more.
This story was written by: @gmakarov. Learn more about this writer by checking @gmakarov's about page,
and for more stories, please visit hackernoon.com.
Developers often insert SVG directly into JSX. This is convenient to use, but it increases the JS bundle size. In the pursuit of optimization, I decided to find another way of using SVG icons without cluttering the bundle. We will talk about SVG sprites, what they are, how to use them, and what tools are available for working with them.
Starting with theory, we will write a script that generates an SVG sprite step by step and conclude by discussing plugins for vite and webpack.
Get every episode summarized
Each time Programming Tech Brief By HackerNoon publishes, we email you a written briefing from the transcript — the topics, who appeared, and any specific claims, with the ad reads skipped.
Email me new episodesFree for 3 shows. No card needed.
Know when Jane Smith turns up
Follow Jane Smith and once a week we email you every new episode they appeared on — including guest spots the show notes never mention, because we read the transcript.
Follow Jane SmithFree. Pick your own day and time.
Hosts & guests
No transcript yet
This episode has not been transcribed. Request it and it moves to the front of the queue.
More episodes
More from Programming Tech Brief By HackerNoon

Coping is the Problem
Programming Tech Brief By HackerNoon

Shared Context Makes HubSpot AI Smarter. It Also Expands the Blast Radius.
Programming Tech Brief By HackerNoon

How to Become The Most Annoying Person at Every Tech Event
Programming Tech Brief By HackerNoon

CertiK Completes Formal Verification of zkWasm, Mathematically Proving the zkVM...
Programming Tech Brief By HackerNoon