F
F
Feex2014-10-20 20:10:18
JavaScript
Feex, 2014-10-20 20:10:18

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/'));
});

also globally installed: phantomjs , gm , pngsmith
and when running gulp sprite
cmd
$ 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

Everything seems to be fine, but there are no files.
Maybe someone faced such a problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question