you can use easy-imagemin to minifly all images in some path
easy-imagemin 是一个基于imagemin的图片压缩命令行工具,快速批量压缩某一个目录内所有图片. easy-imagemin is a imagemin base cli tool, you can use it to minifly all images in some path. ^_^
$ npm install easy-imagemin -g
$ easy-imagemin -t:<目标目录(target path)> -o:<输出目录(out path)>
output to target path
$ easy-imagemin -t:<目标目录(target path)> -o:@current -f