All notes
Gulp

Commandline



# List all the tasks
gulp -T

# --silent	-S

Debug



node --inspect-brk ./node_modules/.bin/gulp css
# Use Chrome to browse to chrome://inspect

gulp.spritesmith

npmjs.com: gulp.spritesmith.

Config

cssVarMap



// Prefix all sprite names with `sprite-` (e.g. `home` -> `sprite-home`)
cssVarMap: function (sprite) {
  sprite.name = 'sprite_' + sprite.name;
}
 
// Generates:
// $sprite_fork_x = 0px;
// $sprite_fork_y = 0px;
 
// As oppposed to default:
// $fork_x = 0px;
// $fork_y = 0px;