imagemin CLI designed for lint-staged usage with sensible defaults
npm i --save-dev imagemin-lint-staged
Use in conjuntion with lint-staged. In your package.json
"lint-staged": {
"*.{png,jpeg,jpg,gif,svg}": ["imagemin-lint-staged", "git add"]
},
N/A
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request