rollup-plugin-visualizer
[![NPM Version](https://img.shields.io/npm/v/rollup-plugin-visualizer.svg)](https://npmjs.org/package/rollup-plugin-visualizer) [![Travis CI build status](https://img.shields.io/travis/com/btd/rollup-plugin-visualizer.svg)](https://travis-ci.com/btd/rollu
Last updated a month ago by btd .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rollup-plugin-visualizer 
SYNC missed versions from official npm registry.

Rollup Plugin Visualizer

NPM Version Travis CI build status

Visualize and analyze your Rollup bundle to see which modules are taking up space.

Screenshots

pic

Installation

npm install --save-dev rollup-plugin-visualizer

or via yarn:

yarn add --dev rollup-plugin-visualizer

Usage

import visualizer from 'rollup-plugin-visualizer';

//...
plugins: [
  visualizer()
],
//...

Options

filename (string, default stats.html) - name of the file with diagram to generate

title (string, default Rollup Visualizer) - title tag value

sourcemap (boolean, default false) - Use sourcemaps to calculate sizes (e.g. after UglifyJs or Terser)

open (boolean, default false) - Open generated file in default user agent

template (string, default treemap) - Which digram type to use: sunburst, treemap, circlepacking, network (very early stage, feedback welcomed)

extraStylePath (string, default undefined) - Link your own css file to override or enhance the current templates deprecated

chartParameters.width (number, default undefined) - Set svg viewBox width to this number

chartParameters.height (number, default undefined) - Set svg viewBox height to this number

json (boolean, default false) - Product portable json file that can be used with plugin CLI util to generate graph from several json files. Every UI property ignored in this case.

CLI

This plugin provides cli util rollup-plugin-visualizer. Add --help to check actual options. It can be used like:

rollup-plugin-visualizer [OPTIONS] stat1.json stat2.json ../stat3.json

This can be usefull in case you have different config files in the same project and you want to display all of them in the same chart.

Build plugin

For development if you need to build plugin, just exec:

yarn run build

Disclaimer about generated files

Generated html files do not and never will contain your source code (contents of files). They can contain only js/html/css code required to build chart (plugin code) and statistical information about your source code.

This statistical information can contain:

  • size of files included in bundle
  • size of files included in source map
  • file's path
  • files hierarchy (fs tree for your files)

Upgrades

See CHANGELOG.md.

Acknowledgements

Initially this plugin was based on webpack-visualizer, but in the end used only styles and layout. Thanks to the tons of people around internet for great examples of d3 usage. Also i would like to thank you Mike Bostock for awesome D3, and tons of examples.

Current Tags

  • 3.3.1                                ...           latest (a month ago)

60 Versions

  • 3.3.1                                ...           a month ago
  • 3.3.0                                ...           2 months ago
  • 3.2.3                                ...           2 months ago
  • 3.2.2                                ...           2 months ago
  • 3.2.1                                ...           2 months ago
  • 3.2.0                                ...           2 months ago
  • 3.1.1                                ...           2 months ago
  • 3.1.0                                ...           2 months ago
  • 3.0.6                                ...           2 months ago
  • 3.0.5                                ...           2 months ago
  • 3.0.4                                ...           2 months ago
  • 3.0.3                                ...           2 months ago
  • 3.0.2                                ...           2 months ago
  • 3.0.1                                ...           2 months ago
  • 3.0.0                                ...           2 months ago
  • 2.7.2                                ...           3 months ago
  • 2.7.1                                ...           3 months ago
  • 2.7.0                                ...           3 months ago
  • 2.6.1                                ...           3 months ago
  • 2.6.0                                ...           5 months ago
  • 2.5.4                                ...           6 months ago
  • 2.5.3                                ...           6 months ago
  • 2.5.2                                ...           6 months ago
  • 2.5.1                                ...           6 months ago
  • 2.5.0                                ...           6 months ago
  • 2.4.4                                ...           7 months ago
  • 2.4.3                                ...           7 months ago
  • 2.4.2                                ...           7 months ago
  • 2.4.1                                ...           7 months ago
  • 2.4.0                                ...           7 months ago
  • 2.3.0                                ...           7 months ago
  • 2.2.1                                ...           7 months ago
  • 2.2.0                                ...           7 months ago
  • 2.1.1                                ...           7 months ago
  • 2.1.0                                ...           7 months ago
  • 2.0.0                                ...           8 months ago
  • 1.1.1                                ...           10 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.9.2                                ...           a year ago
  • 0.9.1                                ...           a year ago
  • 0.9.0                                ...           a year ago
  • 0.8.1                                ...           a year ago
  • 0.8.0                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.5                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |