Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

mikehall314/gulp-teenypng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Optimize PNG images with teenypng and gulp

Resources

License

Stars

Watchers

Forks

Packages

No packages published