2017-04-22 12:51:51 +00:00
[![Deploy to now ](https://deploy.now.sh/static/button.svg )](https://deploy.now.sh/?repo=https://github.com/zeit/next.js/tree/master/examples/with-webpack-bundle-analyzer)
2017-02-14 02:24:50 +00:00
# Webpack Bundle Analyzer example
## How to use
Download the example [or clone the repo ](https://github.com/zeit/next.js ):
```bash
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/with-webpack-bundle-analyzer
2017-02-15 12:42:48 +00:00
cd with-webpack-bundle-analyzer
2017-02-14 02:24:50 +00:00
```
2017-06-28 19:16:21 +00:00
Install it
2017-02-14 02:24:50 +00:00
```bash
npm install
```
## The idea behind the example
This example shows how to analyze the output bundles using [webpack-bundle-analyzer ](https://github.com/th0r/webpack-bundle-analyzer#as-plugin )
2017-02-15 12:42:48 +00:00
2017-06-28 19:16:21 +00:00
To analyze your webpack output, invoke the following command:
```bash
npm run analyze
```