🔨 docs(pre-commit): remove redundancy in minified error

main
welpo 2 years ago
parent 68e37f4574
commit 2833d9f8c0
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -70,9 +70,9 @@ function is_minified() {
# If the file isn't as small as it can be, suggest the better compressor in the error message
if (( terser_size < uglifyjs_size )); then
error_exit "Minified JS file $file isn't as small as it can be with terser! Consider using terser for better compression."
error_exit "Minified JS file $file isn't as small as it can be! Try using terser for better compression."
else
error_exit "Minified JS file $file isn't as small as it can be with uglifyjs! Consider using uglifyjs for better compression."
error_exit "Minified JS file $file isn't as small as it can be! Try using uglifyjs for better compression."
fi
}

Loading…
Cancel
Save