webpack-bundle-analyzer displays a blank page when run from the CLI
See original GitHub issueIssue description
Hello. When using the plugin the bundle analyzer displays everything correctly. However, I want to use a stats.json
file that I’m generating with production flags on.
Unfortunately, the page is just completely blank.
Technical info
System: OS: macOS 10.15.3 CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz Memory: 201.30 MB / 8.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.18.1 - /usr/local/bin/node npm: 6.14.5 - /usr/local/bin/npm npmPackages: koa-webpack: ^5.3.0 => 5.3.0 terser-webpack-plugin: ^3.0.6 => 3.0.6 webpack: ^4.42.0 => 4.43.0 webpack-bundle-analyzer: ^3.8.0 => 3.8.0 webpack-cli: ^3.3.12 => 3.3.12 webpack-dev-server: 3.10.3 => 3.10.3 webpack-hot-middleware: ^2.25.0 => 2.25.0 webpack-merge: ^4.2.2 => 4.2.2 webpack-node-externals: ^1.7.2 => 1.7.2 npmGlobalPackages: webpack-bundle-analyzer: 3.8.0
Debug info
$ NODE_ENV=production `npm bin`/webpack \
--config webpack.client.js \
-o build/client/index.js \
--profile --json > stats.json
$ webpack-bundle-analyzer stats.json

Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to use the webpack bundle analyzer - Jakob Lind
There are two ways to configure webpack bundle analyzer in a webpack project. Either as a plugin or using the command-line interface.
Read more >Why is my browser showing a blank page after code splitting ...
The bundle splitting works fine for our own code base, but when I split the node modules, the browser shows a blank page...
Read more >Command Line Interface - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >Webpack Bundle Analyzer with Create React App ... - YouTube
Webpack Bundle Analyzer is a tool to visualize the size of webpack output files. Zooming is one of the features of this tool....
Read more >umi-webpack-bundle-analyzer - npm
Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap. Latest version: 4.4.2, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Check your Webpack config file, seems like having
stats: 'error-only'
is causing thestats.json
to have very limited output.@david-wolgemuth it could be that
compression-webpack-plugin
is causing your issue, as https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/379 isn’t yet done ☺️