Answer the question
In order to leave comments, you need to log in
Why doesn't gulp.spritesmith create sprites?
I don't even know what could be the problem when using gulp.spritesmith
gulpfile.js
var gulp = require('gulp');
var spritesmith = require('gulp.spritesmith');
gulp.task('sprite', function () {
var spriteData = gulp.src('./images/*.png').pipe(spritesmith({
imgName: 'sprite.png',
cssName: 'sprite.css'
}));
spriteData.pipe(gulp.dest('./path/'));
});
$ gulp sprite
[00:04:02] Using gulpfile d:\[www]\gulp\test2\gulpfile.js
[00:04:02] Starting 'sprite'...
[00:04:02] Finished 'sprite' after 11 ms
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