Update stats.ts (#1376)
This commit is contained in:
parent
98d785af1d
commit
3a0dcbe9b1
2 changed files with 6 additions and 1 deletions
5
.changeset/five-phones-draw.md
Normal file
5
.changeset/five-phones-draw.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix pretty byte output in build stats
|
|
@ -86,7 +86,7 @@ export function logURLStats(logging: LogOptions, urlStats: URLStatsMap) {
|
|||
.get(url)
|
||||
?.stats.map((s) => s.gzipSize)
|
||||
.reduce((a, b) => a + b, 0) || 0;
|
||||
const sizePart = prettyBytes(bytes, { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
||||
const sizePart = prettyBytes(bytes);
|
||||
log(info, urlPart, sizePart);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue