Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 583 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 583 Bytes

gulp-tgs

Uncompress tgs files in your gulp build pipeline

Install

$ npm install --save-dev gulp-tgs

Usage

const gulp = require('gulp')
const gunzip = require('gulp-gunzip')
const rename = require('gulp-rename')

gulp.task("lottie", function () {
    return gulp.src("./tgs/*.tgs")
        .pipe(gunzip())
        .pipe(rename(function (path) {
            path.extname = ".json";
        }))
        .pipe(gulp.dest("./lottie"));
});

License

MIT