Answer the question
In order to leave comments, you need to log in
How to make a retina sprite using gulp.spritesmith?
I can not find a normal instruction for creating such a sprite.
On the gulp.spritesmith plugin page, there is something similar to an instruction, but this is not an instruction at all, but nonsense.
I would like a working example or tutorial on creating and using such a sprite, but I can’t find it.
Has anyone done and can show how to create and use retina sprites?
Answer the question
In order to leave comments, you need to log in
You need to create two sets of images of different sizes (set small icons manually to the desired size in some graphic editor or automate using gulp-sharp , for example).
Then use the retinaSrcFilter, retinaImgPath and retinaImgName parameters in gulp.spritesmith.
Here is a guide in which everything is chewed - link .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question