UNPKG
atom-lupa
Version:
latest (0.7.15)
0.7.15
0.7.9
0.7.8
0.7.7
0.7.6
0.5.77
0.5.43
0.5.42
0.5.36
0.5.35
0.4.165
Navigation bar and breadcrumbs
github.com/hex13/atom-lupa
hex13/atom-lupa
atom-lupa
/
analyseWebpack.js
6 lines
(5 loc)
•
155 B
JavaScript
View Raw
1
2
3
4
5
6
var
o =
require
(
'./a.json'
);
var
list = o.
chunks
[
0
].
modules
; list.
sort
(
(
a,b
) =>
a.
size
- b.
size
);
var
l = list.
map
(
m
=>
[m.
name
, m.
size
]);
console
.
log
(l);