g0t4 / webpack-stats-graph

Generate a graph to visualize modules and bundles from webpack via stats.json
MIT License
32 stars 18 forks source link

webpack-stats-graph

Generate a graph to visualize modules and bundles from webpack via stats.json

Usage

build your stats.json file:

webpack --json > stats.json

install graphviz:

Manually download and install: www.graphviz.org/Download.php

macOS

brew install graphviz

http://brewformulas.org/Graphviz

Windows

choco install graphviz
# add graphviz's bin diretory to your path

https://chocolatey.org/packages/Graphviz

build the graph:

npm install -g webpack-stats-graph
webpack-stats-graph # by default looks for stats.json in current directory
webpack-stats-graph --help

output:

By default output is written to a statsgraph folder in the current directory.