chin-plugin-imagemin
v0.0.4
Published
Chin plugin using imagemin.
Downloads
16
Maintainers
Readme
chin-plugin-imagemin
chin plugin using imagemin (designed by refer to gulp-imagemin
including default optimizers).
Installation
yarn add -D chin chin-plugin-imagemin
Usage
imagemin([options | plugins])
import imagemin from 'chin-plugin-imagemin'
// arg as empty that use default optimizers
const ext = imagemin()
// arg as options for default optimizers
const ext = imagemin({
gifsicle: {},
jpegtran: {},
optipng: {},
svgo: {}
})
// arg as custom plugins
const ext = imagemin([])
// arg as custom options
const ext = imagemin({ plugins: [] })
default optimizers
License
MIT (http://opensource.org/licenses/MIT)