Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 749 Bytes

README.md

File metadata and controls

38 lines (23 loc) · 749 Bytes

A fork from gulp-tinypng

Minify PNG and JPG using the tinypng API

Install

Install with npm

npm install --save-dev gulp-tinypng

Example

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'));
});

API

Get your own free API-key at tinify.com.

tinypng(options)

License

This repository is originally licensed by: MIT © Gaurav Jassal