summaryrefslogtreecommitdiff
path: root/pre-commit
diff options
context:
space:
mode:
Diffstat (limited to 'pre-commit')
-rwxr-xr-xpre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-commit b/pre-commit
index 6ea076b..a6c57d1 100755
--- a/pre-commit
+++ b/pre-commit
@@ -2,5 +2,5 @@
#
set -eo pipefail
-find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp $1 -o "${1%.png}.webp"' _ {} \;
+find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp -lossless $1 -o "${1%.png}.webp"' _ {} \;
find . -type f -not -path '*/.git/*' \( ! -iname ".gitignore" ! -iname "pre-commit" \) -exec sed -i -e 's/\.png/\.webp/g' {} \;