gulp-spritesmith

v0.0.0
A plugin for Gulp
gulpplugin

gulp-spritesmith

NPM version Dependency Status

Gulp plugin for sprite generation, based on spritesmith.

Usage

First, install gulp-spritesmith as a development dependency:

npm install --save-dev gulp-spritesmith

Then, add it to your gulpfile.js:

var spritesmith = require("gulp-spritesmith");

gulp.src('./src/img/*.png')
    .pipe(sprite({
        destImg: 'dist/img/sprite.png',
        destCSS: 'dist/css/sprite.css'
    }));

API

spritesmith(options)

options.destImg

Type: String Default: ``

Path where you want to get your image sprite.

options.destCSS

Type: String Default: ``

Path where you want to get your css sprite.

options.cssTemplate

Type: String Default: ``

Path to mustache tmpl file, to format output css.

License

MIT License

Metadata

  • Unknown
  • >=0.8.0
  • Dmitry Lutsik
  • released 2/10/2014

Downloads

Maintainers