From 2833d9f8c045205cf4f57499f132675433eb28d0 Mon Sep 17 00:00:00 2001 From: welpo Date: Fri, 18 Aug 2023 15:10:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20docs(pre-commit):=20remove=20red?= =?UTF-8?q?undancy=20in=20minified=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .githooks/pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index fbb694a..a8cfce3 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -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 }