We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 205e5b5 commit fdcb06bCopy full SHA for fdcb06b
scripts/usage-size.ts
@@ -111,9 +111,10 @@ async function generateBundle(preset: Preset) {
111
}
112
113
console.log(
114
- `${pico.green(pico.bold(preset.name))} - min:${prettyBytes(
115
- size,
116
- )} / gzip:${prettyBytes(gzip)} / brotli:${prettyBytes(brotli)}`,
+ `${pico.green(pico.bold(preset.name))} - ` +
+ `min:${prettyBytes(size, { minimumFractionDigits: 3 })} / ` +
+ `gzip:${prettyBytes(gzip, { minimumFractionDigits: 3 })} / ` +
117
+ `brotli:${prettyBytes(brotli, { minimumFractionDigits: 3 })}`,
118
)
119
120
return {
0 commit comments