0.1.4 • Published 9 years ago
gulp-tfcsprite v0.1.4
gulp-tfcsprite
Usage
First, install gulp-tfcsprite
as a development dependency:
npm install --save-dev gulp-tfcsprite
Then, add it to your gulpfile.js
:
var tfcsprite = require("gulp-tfcsprite");
gulp.src("./src/*.js")
.pipe(tfcsprite({
prefix: '_',
sprites: 'sprites'
}))
.pipe(gulp.dest("./dist"));
API
tfcsprite(options)
options.prefix
Type: String
Default: _
image name prefix, default is "_"
options.sprites
Type: String
Default: sprites
sprite file json data directory, default is sprites