diff --git a/compress-images.sh b/compress-images.sh index 3db056c..9e33115 100755 --- a/compress-images.sh +++ b/compress-images.sh @@ -2,7 +2,7 @@ if command -v jpegoptim >/dev/null 2>&1 ; then echo "jpegoptim found" - find ./public \( -iname "*.jpg" -o -iname "*.jpeg" \) | jpegoptim -p -P --files-stdin -w $(nproc --all) + find ./dist \( -iname "*.jpg" -o -iname "*.jpeg" \) | jpegoptim -p -P --files-stdin -w $(nproc --all) else echo "jpegoptim was not found! install either with your package manager or get the binary from the github" echo "https://github.com/tjko/jpegoptim/releases/latest"