Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-smushit with all npm packages installed. Try it out:

var gulpSmushit = require("gulp-smushit")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-smushit v1.2.0

Gulp plugin to optimize PNG and JPG using reSmush.it

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

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free