1.4.8 • Published 4 years ago

lasso-analyzer v1.4.8

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

lasso-analyzer

npm version Build Status

Lasso-analyzer is a tool for analyzing project bundles created by Lasso. We can easily catch the large and/or duplicate modules which might be either bloating up your bundle.

This package uses treemap for visualiztion.

Installation

npm install -g lasso-analyzer

Usage as plugin

require('lasso').configure({
    ...
    plugins: [
        'lasso-analyzer',
        ...
    ]
});

Usage as CLI

  1. Bundled file is created under "build/static/" folder. Run the CLI as shown below
lasso-analyzer <--bundle path--> --output <--output filename-->

Creates outputFilename.html in your project structure.

Options:
  --output    To change the generated output filename. (default - lasso-analyze.html)
  --c         Visualize the bundle with colors 

For Example:

a. Analyze js bundle file.

lasso-analyzer static/build.js

or

b. Analyze all the files inside particular folder and create lasso-analyze.html.

lasso-analyzer static

c. Bundle with colors

lasso-analyzer static --c
  1. lasso-analyze.html file is created in root path of your project structure.
open lasso-analyze.html
  1. It shows you a treemap visualization as shown below.

Output

Creates lasso-analyze.html in your project directory.

Issues

Free feel to create bug or propose improvements.

1.4.8

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago