File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Finally add this to your `.pre-commit-config.yaml`:
15
15
``` yaml
16
16
- repo : https://github.com/awebdeveloper/pre-commit-imageoptim
17
17
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'
18
19
hooks :
19
20
- id : imageoptim
20
21
additional_dependencies : ['imageoptim-cli']
@@ -23,7 +24,7 @@ Finally add this to your `.pre-commit-config.yaml`:
23
24
Now everytime you commit a png/jpg file. It will run imageoptim-cli on this and optimise the file.
24
25
25
26
### FAQ's
26
-
27
+
27
28
**1.** Why does pre-commit say failed everytime the images are changed by the file.
28
29
29
30
**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.
You can’t perform that action at this time.
0 commit comments