iconography-optimize
v1.0.2
Published
> designed for lint-staged usage with sensible defaults
Downloads
4
Readme
iconography-optimize
designed for lint-staged usage with sensible defaults
Overview
Automatically optimize images on submission
Installation
npm i --save-dev iconography-optimize
Usage
iconography-optimize 1.png 2.png
, Replacement of original positioniconography-optimize -T ./images
, Replace the original location in the foldericonography-optimize -T ./images -O ./newImages/
, Output to new directoryiconography-optimize -O ./newImages/ 1.png 2.png
, Output to new directory- use width lint-staged
"lint-staged": {
"*.{png,jpg,webp}": ["iconography-optimize", "git add"]
}
Other formats are not supported at the moment(gif), Please change JPEG to jpg
License
MIT