🔨 docs(pre-commit): remove redundancy in minified error
This commit is contained in:
parent
68e37f4574
commit
2833d9f8c0
@ -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 the file isn't as small as it can be, suggest the better compressor in the error message
|
||||||
if (( terser_size < uglifyjs_size )); then
|
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
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user