From 5937db395cc2525a18fac0a0d5c5082c0270c32b Mon Sep 17 00:00:00 2001 From: Diederik van der Boor Date: Wed, 24 Aug 2016 17:17:41 +0200 Subject: [PATCH] Fix options function description The options function doesn't receive `options.to`, but receives 2 extra parameters. I've also added a sass example in there. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2c4d38a..522c871 100644 --- a/README.md +++ b/README.md @@ -120,8 +120,9 @@ gulp.task('sprite', ['clean'], function () { // Generate our spritesheet var spriteData = gulp.src('default/**/*.png') .pipe(spritesmith({ - spritesmith: function (options) { - options.imgPath = '../images/' + options.imgName + spritesmith: function (options, sprite, icons) { + options.cssName = 'sprites/_' + sprite + ".scss"; + options.imgPath = '../images/' + options.imgName; } })) @@ -174,8 +175,7 @@ var options = { You can override them through this option. If `Function`, -it receives the default options, -the sprite name specified by `options.to` +it receives the default options and sprite, sprite-name and the related icon files (vinyl file objects). Modify the options object passed in, or return a new one.