The closed issue #147 has some valuable comments about webpack-bundle-analyzer only showing stat sizes when bundle output does not go to the filesystem.
It would be valuable to document this caveat in the README.md.
Please avoid creating competing pull requests
Here's some background from the linked issue:
@jeron-diovis in https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/147#issuecomment-380737178
Just ran into this issue using analyzer with
webpack-dev-server. No angular or things like this.The problem is that analyzer uses physical files to calc parsed/gzipped sizes – while
webpack-dev-serverkeeps everything in memory.Second problem is that being used as plugin, analyzer shows no errors, while CLI tools says
Couldn't parse bundle asset.As I understand, there is nothing analyzer can do with
webpack-dev-server, but maybe it's worth to explicitly mention in docs that you should have files on disc to get parsed/gzipped info?
@Macil in https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/147#issuecomment-397444503
I was using webpack with gulp and
compiler.outputFileSystem = new MemoryFS();so that webpack wouldn't write the bundles itself, so I ran into the same issue as @jeron-diovis. The BundleAnalyzerPlugin didn't report any errors at all in the console, just silently produced stat-sized-only reports. I had to usewebpack-bundle-analyzeron the command line on the profile json in order to see any kind of error message, which I only thought to do because of this thread.
Hi, @valscion . May I take this one?
Sure! :+1: