This is a Feflow plugin. The principle is to use the open source compression tools pngquant, pngcrush, optipng to serially compress and optimize an image.
- ✅ Automatically traverse all image files in the src directory.
- ✅ Support
png
jpg
gif
svg
.
You need to install feflow
first.
$ npm install feflow-cli -g
Then install feflow-plugin-pic-optimize
$ feflow install feflow-plugin-pic-optimize
$ feflow upic
MIT.