此项目服务于 postcss-jingoal-sprite
用于将多个图片合并成一个图片, 并生成对应的json map
var sprite = require('jingoal-sprite');
/*生成sprite*/
gulp.task('spritetask', ["sasstask","fileMap"], function () {
sprite.createSprite(function () {
gulp.src(appPath + '/dest/css/*.css')
.pipe(postcss([
require('postcss-jingoal-sprite')
]))
.pipe(gulp.dest(appPath + '/dest/css'));
});
});