Skip to content

Latest commit

 

History

History
18 lines (18 loc) · 608 Bytes

README.md

File metadata and controls

18 lines (18 loc) · 608 Bytes

项目说明

此项目服务于 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'));
    });
});