diff --git a/CHANGELOG b/CHANGELOG index 0486d2c..fd2fc61 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +v0.9.0: + date: 2014-10-22 + changes: + - Update to imagemin 2.0. v0.8.1: date: 2014-08-27 changes: diff --git a/README.md b/README.md index a9adacf..28d0e46 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# grunt-contrib-imagemin v0.8.1 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-imagemin.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-imagemin) Build Status: Windows +# grunt-contrib-imagemin v0.9.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-imagemin.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-imagemin) Build Status: Windows > Minify images @@ -32,6 +32,7 @@ Comes bundled with the following optimizers: - [gifsicle](https://github.com/kevva/imagemin-gifsicle) — *Compress GIF images* - [jpegtran](https://github.com/kevva/imagemin-jpegtran) — *Compress JPEG images* - [optipng](https://github.com/kevva/imagemin-optipng) — *Compress PNG images* +- [pngquant](https://github.com/kevva/imagemin-pngquant) — *Compress PNG images* - [svgo](https://github.com/kevva/imagemin-svgo) — *Compress SVG images* We recommend using [grunt-newer](https://github.com/tschaub/grunt-newer) to only process changed files as minifying images can be quite slow. @@ -77,6 +78,14 @@ Default: `true` Interlace gif for progressive rendering. +####### svgoPlugins *(svg)* + +Type: `array` +Default: `[]` + +Customize which SVGO plugins to use. [More here](https://github.com/sindresorhus/grunt-svgmin#available-optionsplugins). + + #### use Type: `Array` @@ -89,13 +98,14 @@ Additional [plugins](https://npmjs.org/keyword/imageminplugin) to use with image You can either map your files statically or [dynamically](http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically). ```js -var mozjpeg = require('imagemin-mozjpeg'); +var mozjpeg = require('imagemin-mozjpeg').ctor; grunt.initConfig({ imagemin: { // Task static: { // Target options: { // Target options optimizationLevel: 3, + svgoPlugins: [{ removeViewBox: false }], use: [mozjpeg()] }, files: { // Dictionary of files @@ -122,6 +132,7 @@ grunt.registerTask('default', ['imagemin']); ## Release History + * 2014-10-22   v0.9.0   Update to imagemin 2.0. * 2014-08-27   v0.8.1   Bump dependencies. * 2014-08-11   v0.8.0   Better output. Chalk 0.5.0 update. Fixes imagemin options. * 2014-08-11   v0.7.2   Fix npm EPEERINVALID @@ -146,4 +157,4 @@ grunt.registerTask('default', ['imagemin']); Task submitted by [Sindre Sorhus](http://github.com/sindresorhus) -*This file was generated on Wed Aug 27 2014 14:44:52.* +*This file was generated on Wed Oct 22 2014 14:25:49.* diff --git a/package.json b/package.json index 9a96f35..82d5831 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "grunt-contrib-imagemin", "description": "Minify images", - "version": "0.8.1", + "version": "0.9.0", "author": { "name": "Grunt Team", "url": "http://gruntjs.com/"