Answer the question
In order to leave comments, you need to log in
How to create a sprite from images with the same width and height via gulp?
Challenge:
Lots of images, in multiple directories, with different extensions and different heights and widths.
In order not to handle all this manually:
Answer the question
In order to leave comments, you need to log in
There are a lot of solutions now. In general, it’s not comme il faut to use png sprites, it’s better to take a vector right away (with a few exceptions, when you need to display complex gradients, we take a raster).
The workflow for working with such graphics is perfectly implemented in TARS , I recommend it.
There is a wonderful plugin gulp.spritesmith You
can do anything with it.
Did it somehow so that it was @1, @2, @4, and then used SASS. I threw everything into an array and parsed, through the same SASS, to the right place
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question