mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +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 gzip = await gzipSize(src)
|
||||
return { file, path, size, gzip }
|
||||
}))).sort((a, b) => b.size - a.size)
|
||||
}))).sort((a, b) => b.path.localeCompare(a.path))
|
||||
|
||||
let totalSize = 0
|
||||
let totalGzip = 0
|
||||
|
Loading…
Reference in New Issue
Block a user