Skip to content

Commit

Permalink
Update troubleshooting section at README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fanich37 committed Dec 10, 2018
1 parent 15402cb commit 66f48d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,15 @@ ng build --stats-json --build-optimizer=false --vendor-chunk=true
```
The resulting stats.json can be found at `dist/stats.json`

### I don't see `gzip` or `parsed` sizes, it only shows `stat` size

It happens when `webpack-bundle-analyzer` analyzes files that don't actually exist in your file system, for example when you work with `webpack-dev-server` that keeps all the files in RAM. If you use `webpack-bundle-analyzer` as a plugin you won't get any errors, however if you run it via CLI you get the error message in terminal:
```
Couldn't parse bundle asset "your_bundle_name.bundle.js".
Analyzer will use module sizes from stats file.
```
To get more information about it you can read [issue #147](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/147).

*Please be aware, that this is not a reasonable build for production use, as it increases the build output size considerably.*

<h2 align="center">Maintainers</h2>
Expand Down

0 comments on commit 66f48d9

Please sign in to comment.