Skip to content

Commit

Permalink
Increase analyze script to 3.5 MiB
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaianirh committed Aug 23, 2021
1 parent 7e9f3f4 commit 1afb182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ -d "$ARTIFACT_DIR" ]; then
cp public/dist/report.html "${ARTIFACT_DIR}"
fi

MAX_BYTES=3407872 # ~3.25 MiB
MAX_BYTES=3670016 # ~3.5 MiB
VENDORS_MAIN_BYTES=$(du -b `find public/dist -type f -name 'vendors~main-chunk*js'` | cut -f1)
DISPLAY_VALUE=$(awk "BEGIN {printf \"%.2f\n\", $VENDORS_MAIN_BYTES/1024/1024}")
MAX_DISPLAY_VALUE=$(awk "BEGIN {printf \"%.2f\n\", $MAX_BYTES/1024/1024}")
Expand Down

0 comments on commit 1afb182

Please sign in to comment.