How to auto-generate SVG sprites with webpack and svg-sprite-loader

by Ane Min Garnaas

When developing, there are several benefits to using SVG sprites, but maintaining sprites can quickly become difficult and time-consuming. With Webpack and svg-sprite-loader your sprite will be automatically generated when you bundle your code. What is an SVG sprite? A sprite is a collection of something, ex. images, put into…