gulp-teenypng

0.2.0 • Public • Published

gulp-teenypng

Reduce PNG + JPG images with teenypng and gulp

Install

Install with npm

$ npm install --save-dev gulp-teenypng

Example

"use strict";
 
var gulp, teenypng;
 
gulp     = require('gulp');
teenypng = require('gulp-teenypng');
 
gulp.task('default', function () {
    gulp.src('src/image.png')
        .pipe(teenypng({ "apikey": "XXXXXXXXXX" }))
        .pipe(gulp.dest('dist'));
});

Settings

  • apikey: Developer API key from tinypng.com (required)

Published under the MIT License.

Package Sidebar

Install

npm i gulp-teenypng

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • mikehall314