Package Exports
- grunt-imageoptim
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (grunt-imageoptim) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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-devExample 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');
};