Skip to content

heldr/gulp-smushit

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

gulp-smushit Build Status

Gulp plugin to optimize PNG and JPG using reSmush.it. Made on top of smosh.

reSmush.it is a FREE alternative to Yahoo Smush.it (deprecated on March 2015). This tool provides a online way to optimize pictures size via a documented webservice.

Read more about reSmush.it

Prefer Grunt? grunt-smushit

Install

$ npm install --save-dev gulp-smushit

Usage

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

gulp.task('default', function () {
	return gulp.src('src/**/*.{jpg,png}')
		.pipe(smushit())
		.pipe(gulp.dest('dist'));
});

API

smushit(options)

options

verbose

Type: boolean
Default: false

Show compress rate stats

License

MIT © Helder Santana

About

Gulp plugin to optimize PNG and JPG using reSmush.it.

Resources

Stars

Watchers

Forks

Packages

No packages published