7 lines
327 B
Bash
Executable File
7 lines
327 B
Bash
Executable File
#!/usr/bin/env sh
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
yarn prettier:write && yarn test --silent && yarn webpack-build > ___results_bundle_size.txt
|
|
total_size=$(awk '/Entrypoint entry/ {print $3}' ___results_bundle_size.txt)
|
|
echo "$(tput setaf 1) Total size of bundle: $total_size MiB $(tput sgr 0)"
|
|
rm ___results_bundle_size.txt |