joelxr / imagemin-lint-staged

imagemin CLI designed for lint-staged usage with sensible defaults

Home Page:https://medium.com/@tomchentw/imagemin-lint-staged-in-place-minify-the-images-before-adding-to-the-git-repo-5acda0b4c57e

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

imagemin-lint-staged

imagemin CLI designed for lint-staged usage with sensible defaults

Version Travis CI Quality Coverage Dependencies Gitter

Installation

npm i --save-dev imagemin-lint-staged

Usage

Use in conjuntion with lint-staged. In your package.json

  "lint-staged": {
    "*.{png,jpeg,jpg,gif,svg}": ["imagemin-lint-staged", "git add"]
  },

Options

N/A

Contributing

devDependency Status

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

imagemin CLI designed for lint-staged usage with sensible defaults

https://medium.com/@tomchentw/imagemin-lint-staged-in-place-minify-the-images-before-adding-to-the-git-repo-5acda0b4c57e

License:MIT License


Languages

Language:JavaScript 100.0%