Skip to content

Commit

Permalink
chore: fix size reporting for brotli
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 2, 2023
1 parent c1cbb74 commit a5dcbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function checkFileSize(filePath) {
const gzipped = gzipSync(file)
const gzippedSize = (gzipped.length / 1024).toFixed(2) + 'kb'
const compressed = compress(file)
const compressedSize = (compressed?.length || 0 / 1024).toFixed(2) + 'kb'
const compressedSize = (compressed?.length / 1024).toFixed(2) + 'kb'
console.log(
`${chalk.gray(
chalk.bold(path.basename(filePath))
Expand Down

0 comments on commit a5dcbad

Please sign in to comment.