Skip to content

Commit 810a862

Browse files
committed
args added
1 parent 7877a45 commit 810a862

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Finally add this to your `.pre-commit-config.yaml`:
1515
```yaml
1616
- repo: https://github.com/awebdeveloper/pre-commit-imageoptim
1717
sha: '' # Use the sha or tag you want to point at like 0.0.1
18+
args: ['--quit', '--no-color'] # You can specify more like '--jpeg-mini', '--image-alpha'
1819
hooks:
1920
- id: imageoptim
2021
additional_dependencies: ['imageoptim-cli']
@@ -23,7 +24,7 @@ Finally add this to your `.pre-commit-config.yaml`:
2324
Now everytime you commit a png/jpg file. It will run imageoptim-cli on this and optimise the file.
2425
2526
### FAQ's
26-
27+
2728
**1.** Why does pre-commit say failed everytime the images are changed by the file.
2829
2930
**A.** This is how pre-commit works. You need to just add the files again and commit. This is done so that you can verify the changes.

0 commit comments

Comments
 (0)