mixtur / webpack-spritesmith

Webpack plugin that converts set of images into a spritesheet and SASS/LESS/Stylus mixins
498 stars 56 forks source link

How to generate sprite image/s by folder structure? #97

Closed marvin-aoanan closed 3 years ago

marvin-aoanan commented 3 years ago

How to generate sprite image/s by folder structure? For example I want to generate a sprite images separately in each folder? src -folder1 --icon1.png --icon2.png --icon3.png -folder2 --icon1.png --icon2.png --icon3.png

sample output: spritesmith-generated -sprite1.css -sprite1.png -sprite2.css -sprite2.png

mixtur commented 3 years ago

Create two plugin instances. There already was such issue https://github.com/mixtur/webpack-spritesmith/issues/19#issuecomment-261703943