Answer the question
In order to leave comments, you need to log in
Gulp.spritesmith what is wrong?
gulp.task('sprites', function() {
var spriteData =
gulp.src('app/img/sprite/*.png') // путь, откуда берем картинки для спрайта
.pipe(spritesmith({
imgName: 'sprite.png',
cssName: 'sprite.css',
}));
return spriteData.pipe(gulp.dest('app/img')); // путь, куда сохраняем картинку
return spriteData.pipe(gulp.dest('app/css')); // путь, куда сохраняем стили
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question