feat: new bun_build and bun_compile, extend bun_install
This commit is contained in:
@@ -4,10 +4,10 @@ set -euo pipefail
|
||||
bundle="$1"
|
||||
minified="$2"
|
||||
|
||||
bundle_size="$(wc -c < "${bundle}")"
|
||||
minified_size="$(wc -c < "${minified}")"
|
||||
bundle_size="$(wc -c <"${bundle}")"
|
||||
minified_size="$(wc -c <"${minified}")"
|
||||
|
||||
if (( minified_size >= bundle_size )); then
|
||||
if ((minified_size >= bundle_size)); then
|
||||
echo "Expected minified bundle (${minified_size}) to be smaller than regular bundle (${bundle_size})" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user