Skip to content

Commit

Permalink
fix size cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Jun 9, 2020
1 parent f85ad87 commit f07a418
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/e2e.cdn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cp packages/web3/dist/web3.min.js scripts/html

cd scripts/html

BUNDLE_SIZE=$(stat -f%z web3.min.js)
BUNDLE_SIZE=$(wc -c web3.min.js | awk '{print $1}')

# Mark file with current commit, branch, and bundle size.
sed -i "s|__COMMIT_HASH__|$COMMIT_REF|g" index.html
Expand Down
2 changes: 1 addition & 1 deletion scripts/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2> Latest Block </h2>
document.getElementById("today").innerHTML = "Today is " + Date(block.timestamp);
document.getElementById("commitHash").innerHTML = "Merge commit hash: " + "__COMMIT_HASH__";
document.getElementById("branch").innerHTML = "Branch: " + "__BRANCH__";
document.getElementById("bundleSize").innerHTML = "Bundle Size: " + "__BUNDLE_SIZE__" + " bytes";
document.getElementById("bundleSize").innerHTML = "Bundle size: " + "__BUNDLE_SIZE__" + " bytes";
}
writeBlock();
</script>
Expand Down

0 comments on commit f07a418

Please sign in to comment.