Skip to content

Commit

Permalink
Update: spritesmithの仕様変更に合わせて修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sable-virt committed Dec 8, 2015
1 parent 352db03 commit 002cb84
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gulp/sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ gulp.task('sprite', function() {
functions: true
}
}, op);
var strm = gulp.src(file.path + '/' + config.sprite.extension)
var strm = gulp.src(file.path + '/*' + config.sprite.extension)
.pipe($.plumber())
.pipe($.spritesmith(options));
strm.img.pipe(gulp.dest(config.path.sprite.imageDest));
strm.css.pipe(gulp.dest(config.path.sprite.cssDest));
return ms(stream, strm);

var imgStream = strm.img.pipe(gulp.dest(config.path.sprite.imageDest));
var cssStream = strm.css.pipe(gulp.dest(config.path.sprite.cssDest));
return ms(imgStream, cssStream);
}
return stream;
}));
Expand Down

0 comments on commit 002cb84

Please sign in to comment.