npm install -D fly-imagemin
export default function* () {
yield this
.source("image.jpg")
.imagemin({
progressive: true
})
.target("result")
}
- Type:
number
- Default:
3
- Type:
boolean
- Default:
false
- Type:
boolean
- Default:
false
- Type:
boolean
- Default:
false
- Type:
array
- Default:
[]
- Type:
array
- Default:
null
Additional plugins to use with imagemin.