A fork from gulp-tinypng
Minify PNG and JPG using the tinypng API
Install with npm
npm install --save-dev gulp-tinypng
const gulp = require('gulp');
const tinypng = require('gulp-tinypng');
gulp.task('tinypng', function () {
gulp.src(['src/**/*.jpg','src/**/*.png'])
.pipe(tinypng('API_KEY'))
.pipe(gulp.dest('compressed_images'));
});
Get your own free API-key at tinify.com.
This repository is originally licensed by: MIT © Gaurav Jassal