creativeaura / gulp-tinypng

gulp plugin to compress png images using tinypng api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-tinypng

Minify PNG using tinypng

Install

Install with npm

npm install --save-dev gulp-tinypng

Example

var gulp = require('gulp');
var tinypng = require('gulp-tinypng');

gulp.task('tinypng', function () {
	gulp.src('src/**/*.png')
		.pipe(tinypng('API_KEY'))
		.pipe(gulp.dest('compressed_images'));
});

API

tinypng(options)

License

MIT © Gaurav Jassal

About

gulp plugin to compress png images using tinypng api


Languages

Language:JavaScript 100.0%