Skip to content

Commit

Permalink
chore: log more precise digits for size script [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 20, 2024
1 parent 205e5b5 commit fdcb06b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/usage-size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ async function generateBundle(preset: Preset) {
}

console.log(
`${pico.green(pico.bold(preset.name))} - min:${prettyBytes(
size,
)} / gzip:${prettyBytes(gzip)} / brotli:${prettyBytes(brotli)}`,
`${pico.green(pico.bold(preset.name))} - ` +
`min:${prettyBytes(size, { minimumFractionDigits: 3 })} / ` +
`gzip:${prettyBytes(gzip, { minimumFractionDigits: 3 })} / ` +
`brotli:${prettyBytes(brotli, { minimumFractionDigits: 3 })}`,
)

return {
Expand Down

0 comments on commit fdcb06b

Please sign in to comment.