0.0.2 • Published 10 years ago

gulp-spritesmith v0.0.2

Weekly downloads
276
License
-
Repository
-
Last release
10 years ago

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