gulp-tgs

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i gulp-tgs

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.41 kB

Total Files

4

Last publish

Collaborators

  • qork