Answer the question
In order to leave comments, you need to log in
How to properly set up and set the path to the images in the sprite?
I use this build which is based on Gulp, Jade and Stylus.
In Gulp watch it is written that the pictures are collected in sprites
watch('app/sprites/**/*.png', () => gulp.start('sprites'));
background-image url(/images/sprites/sprites.png)
Answer the question
In order to leave comments, you need to log in
Otherwise, you prescribe the gulp.spritesmith plugin generates, in addition to the sprite itself, also stylys mixins in which the offset is already specified.
This is the template https://github.com/CSSSR/spritesmith-stylus-retina... the
finished stylus file is placed in app/sprites
So call them
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question