Skip to content

adrianmihalko/grunt-imageoptim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-imageoptim

The companion Grunt plugin for ImageOptim-CLI, which automates batch optimisation of images with ImageOptim, ImageAlpha and JPEGmini for Mac.

Installation

From the root of your project, run

npm install grunt-imageoptim --save-dev

Example Gruntfile.js

In future versions we plan to fully support Grunt's file pattern matching. Until then only processing of directories is supported (as opposed to arbitrary collections of files).

module.exports = function(grunt) {
  grunt.initConfig({
    imageoptim: {
      files: ['public/image-directory'],
      options: {
        jpegMini: false,
        imageAlpha: false,
        quitAfter: false
      }
    }
  });
  grunt.loadNpmTasks('grunt-imageoptim');
};

About

Make ImageOptim, ImageAlpha and JPEGmini part of your automated build process

Resources

License

Stars

Watchers

Forks

Packages

No packages published