File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,33 @@ This package uses [treemap](#https://github.com/evmar/webtreemap) for visualizti
13
13
npm install -g lasso-analyzer
14
14
```
15
15
16
- ## Usage ##
16
+ ## Usage as plugin ##
17
+
18
+ ``` js
19
+ require (' lasso' ).configure ({
20
+ ...
21
+ plugins: [
22
+ ' lasso-analyzer' ,
23
+ ...
24
+ ]
25
+ });
26
+ ```
27
+ Creates lasso-analyze.html in your project directory.
17
28
29
+ ## Usage as CLI ##
18
30
1 . make the bundlingEnabled flag to true in config.json
19
31
``` bash
20
32
" bundlingEnabled" : true,
21
33
" outputDir" : " build/static/" ,
22
34
```
23
35
2 . Bundled file is created under "build/static/" folder. Run the CLI as shown below
36
+
37
+ ``` bash
38
+ lasso-analyzer < --bundle path-->
39
+ ```
40
+ ![ webpack bundle analyzer zoomable treemap] ( /Users/aprathap/Documents/git/lasso-analyzer/example/lasso-analyzer.gif )
41
+ For Example:
42
+
24
43
``` bash
25
44
lasso-analyzer build/static/index.js
26
45
```
@@ -31,13 +50,8 @@ open lasso-analyze.html
31
50
```
32
51
4 . It shows you a treemap visualization as shown below.
33
52
34
- ## Command-Line Interface Support ##
35
-
36
- ``` bash
37
- lasso-analyzer < --bundle file path-->
38
- ```
39
53
40
54
## Issues ##
41
55
Free feel to create bug or propose improvements.
42
56
43
-
57
+
You can’t perform that action at this time.
0 commit comments