

It is called "stat size" because it's obtained from Webpack's This is the "input" size of your files, before any transformations like defaultSizes can be used to control which of these is shown by default.

Webpack-bundle-analyzer reports three values for sizes. Possible values: debug, info, warn, error, silent (default: info) e, -exclude Assets that should be excluded from the report. O, -no-open Don't open report in default browser automatically.

Possible values: stat, parsed, gzip (default: parsed) s, -default-sizes Module sizes to show in treemap by default. t, -title String to use in title element of html report. r, -report Path to bundle report file that will be generated in `static` mode. Should be a number or `auto` (default: 8888) p, -port Port that will be used in `server` mode to start HTTP server. h, -host Host that will be used in `server` mode to start HTTP server. In `json` mode single JSON file with bundle report will be generated. In `static` mode single HTML file with bundle report will be generated. In `server` mode analyzer will start HTTP server to show bundle report. You can generate it using BundleAnalyzerPlugin with generateStatsFile option set to true or with this simple You can analyze an existing bundle if you have a webpack stats JSON file. Used to control how much details the plugin outputs. If multiple patterns are provided asset should match at least one of them to be excluded.ĭefault: info. If pattern is a function it should have the following signature (assetName: string) => boolean and should return true to exclude matching asset. If pattern is a string it will be converted to RegExp via new RegExp(str). Patterns that will be used to match against asset names to exclude them from the report. Port that will be used in server mode to start HTTP server.ĭefault: null. Host that will be used in server mode to start HTTP server.ĭefault: 8888. In disabled mode you can use this plugin to just generate Webpack Stats JSON file by setting generateStatsFile to true.ĭefault: 127.0.0.1. In json mode single JSON file with bundle report will be generated. In static mode single HTML file with bundle report will be generated.

In server mode analyzer will start HTTP server to show bundle report. New BundleAnalyzerPlugin ( options? : object ) Nameĭefault: server.
