Skip to content

Commit 66f48d9

Browse files
committed
Update troubleshooting section at README.md
1 parent 15402cb commit 66f48d9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,15 @@ ng build --stats-json --build-optimizer=false --vendor-chunk=true
166166
```
167167
The resulting stats.json can be found at `dist/stats.json`
168168

169+
### I don't see `gzip` or `parsed` sizes, it only shows `stat` size
170+
171+
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:
172+
```
173+
Couldn't parse bundle asset "your_bundle_name.bundle.js".
174+
Analyzer will use module sizes from stats file.
175+
```
176+
To get more information about it you can read [issue #147](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/147).
177+
169178
*Please be aware, that this is not a reasonable build for production use, as it increases the build output size considerably.*
170179

171180
<h2 align="center">Maintainers</h2>

0 commit comments

Comments
 (0)