Update: I’ve also found a different method, this time instead using a Python script called “Glue“.
I did this about 12 months, but recently had to setup a new development environment.
Here are some notes on setting up css-sprite.
- Install node.js
- Install css-sprite
npm install css-sprite -g
- Have fun.
- Create two folders src (add png files here) and images
- run the command from cmd:
css-sprite images/ src/*.png -p scss -s sprite.scss
- (Here I'm using scss, you can choose from LESS, SCSS or CSS, depending on the project).