@mindev/min-plugin-imagemin
v2.0.1
Published
min plugin-imagemin
Downloads
4
Readme
min plugin-imagemin
安装
$ npm install @mindev/min-plugin-imagemin --save-dev
配置 min.config.js
module.exports = {
plugins: {
imagemin: {
filter: new RegExp('\.(jpg|png|jpeg)$'),
validate (options: PluginHelper.Options) {
return true
},
config: {
jpg: {},
png: {
quality: '65-80'
},
webp: {
quality: 50
}
}
}
}
}
参数说明
Tip
- min cli 2.x 版本开始支持