Skip to content
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
example
src
static
.DS_Store
.gitignore
.jshintrc
.npmignore
.travis.yml
LICENSE
README.md
package.json

README.md

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',
        ...
    ]
});

Creates lasso-analyze.html in your project directory.

lasso-analyzer

Usage as CLI

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

For Example:

a. Options to provide direct Output js file.

lasso-analyzer static/build.js

or

b. Options to provide Output Folder like this, it iterates entire folder and create lasso-analyze.html.

lasso-analyzer static
  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.

Issues

Free feel to create bug or propose improvements.

You can’t perform that action at this time.