Skip to content

Commit 05fd89b

Browse files
committedJan 31, 2019
fix: tweak output stats
1 parent f20d9ac commit 05fd89b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,7 @@ export class Bundler {
365365
}
366366
},
367367
async writeBundle() {
368-
logger.success(title.replace('Bundle', 'Bundled'))
369-
await printAssets(assets)
368+
await printAssets(assets, title.replace('Bundle', 'Bundled'))
370369
}
371370
})
372371

@@ -616,7 +615,7 @@ interface Asset {
616615
}
617616
type Assets = Map<string, Asset>
618617

619-
async function printAssets(assets: Assets) {
618+
async function printAssets(assets: Assets, title: string) {
620619
const gzipSize = await import('gzip-size').then(res => res.default)
621620
const table = await Promise.all(
622621
[...assets.keys()].map(async relative => {
@@ -630,6 +629,7 @@ async function printAssets(assets: Assets) {
630629
})
631630
)
632631
table.unshift(['File', 'Size', 'Gzipped'].map(v => colors.dim(v)))
632+
logger.log(title)
633633
logger.log(
634634
boxen(
635635
textTable(table, {

0 commit comments

Comments
 (0)
Please sign in to comment.