1.1.0 • Published 2 months ago

vite-bundle-visualizer v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

vite-bundle-visualizer

Visualize vite bundle, like webpack-bundle-analyzer.

Use rollup-plugin-visualizer.

Usage

# In your vite project's root
$ npx vite-bundle-visualizer
# Then open stats.html in browser

# Use specified vite config file
$ npx vite-bundle-visualizer -c your.config.js
$ vite-bundle-visualizer --help

vite-bundle-visualizer

Usage:
  $ vite-bundle-visualizer <command> [options]

Options:
  --template -t <template>  Template to use, options are "raw-data" (JSON), "treemap", "list", "sunburst" and "network" (default: treemap)
  --output -o <filepath>    Output file path, should be "**/*.html" or "**/*.json" (default: ${TMP_DIR}/stats.html)
  --open <open>             Should open browser after generated, except when template is "json" (default: true)
  --config -c <file>        Use specified vite config file
  --entry --input -i        Use specified entry file, default is "index.html"
  --sourcemap               use sourcemap to calculate sizes of modules. By idea it will present more accurate results, defaults is false
  -h, --help                Display this message

Screenshots

Visualizer Templates

Treemap

$ vite-bundle-visualizer

treemap

Sunburst

$ vite-bundle-visualizer -t sunburst

sunburst

Network

$ vite-bundle-visualizer -t network

network

Raw data

Output raw data (JSON) of stats

# @deprecated vite-bunlde-visualizer -t json
$ vite-bundle-visualizer -t raw-data

demo/stats.json

List

Output yml file with all the data

$ vite-bundle-visualizer -t list

demo/stats.yml

Dependencies

License

MIT

1.1.0

2 months ago

1.0.1

3 months ago

1.1.0-alpha.1

3 months ago

1.0.0

5 months ago

0.11.0

6 months ago

0.10.1

6 months ago

0.10.0

10 months ago

0.9.0

10 months ago

0.8.1

10 months ago

0.8.0

11 months ago

0.5.0

1 year ago

0.7.0

12 months ago

0.6.0

1 year ago

0.4.2

1 year ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago