1.0.0 • Published 2 years ago

gulp-tgs v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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