Skip to content

Commit

Permalink
CONSOLE-3905: update analyze.sh to use largest file in vendor chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
logonoff committed Oct 8, 2024
1 parent aa2338a commit 9173d3c
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 @@ -15,7 +15,7 @@ if [ -d "$ARTIFACT_DIR" ]; then
fi

MAX_BYTES=3879731 # ~3.7 MiB
VENDORS_MAIN_BYTES=$(du -b `find public/dist -type f -name 'vendors~main-chunk*js'` | cut -f1)
VENDORS_MAIN_BYTES=$(du -b `find public/dist -type f -name 'vendors~*-bundle-*js'` | cut -f1 | sort -n | tail -1)
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 9173d3c

Please sign in to comment.