Skip to content

pliersjs/pliers-imagemin

Repository files navigation

pliers-imagemin

Minify GIFs, JPGs, PNGs, and SVGs.

build status

Installation

npm install pliers-imagemin --save

Usage

Within a pliers.js file:

module.exports = function (pliers) {
  pliers.filesets('images', join(__dirname, ..., '**/*.{gif,jpg,png,svg}')
  pliers('imagemin', require('pliers-imagemin')(pliers, pliers.filesets.images))
}

Then from the CLI:

pliers imagemin

Credits

Ben Edwards

Licence

Licensed under the New BSD License