Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}))

Expand Down Expand Up @@ -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.

Expand Down