gulp-spritesmith
v0.0.1 gulpplugin
gulp-spritesmith
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
npm i [email protected]
Metadata
- Unknown
- >=0.8.0
- Dmitry Lutsik
- released 2/10/2014