mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
chore: sort tree by length
This commit is contained in:
parent
ef85ddfbc9
commit
3939ea9e4d
@ -14,7 +14,7 @@ export async function printFSTree (dir) {
|
|||||||
const size = src.byteLength
|
const size = src.byteLength
|
||||||
const gzip = await gzipSize(src)
|
const gzip = await gzipSize(src)
|
||||||
return { file, path, size, gzip }
|
return { file, path, size, gzip }
|
||||||
}))).sort((a, b) => b.size - a.size)
|
}))).sort((a, b) => b.path.localeCompare(a.path))
|
||||||
|
|
||||||
let totalSize = 0
|
let totalSize = 0
|
||||||
let totalGzip = 0
|
let totalGzip = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user