You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ new BundleAnalyzerPlugin(options?: object)
61
61
|**`analyzerPort`**|`{Number}` or `auto`|Default: `8888`. Port that will be used in `server` mode to start HTTP server.|
62
62
|**`reportFilename`**|`{String}`|Default: `report.html`. Path to bundle report file that will be generated in `static` mode. It can be either an absolute path or a path relative to a bundle output directory (which is output.path in webpack config).|
63
63
|**`reportTitle`**|`{String\|function}`|Default: function that returns pretty printed current date and time. Content of the HTML `title` element; or a function of the form `() => string` that provides the content.|
64
-
|**`defaultSizes`**|One of: `stat`, `parsed`, `compressed`|Default: `parsed`. Module sizes to show in report by default. [Size definitions](#size-definitions) section describes what these values mean.|
64
+
|**`defaultSizes`**|One of: `stat`, `parsed`, `gzip`, `brotli`|Default: `parsed`. Module sizes to show in report by default. [Size definitions](#size-definitions) section describes what these values mean.|
65
65
|**`compressionAlgorithm`**|One of: `gzip`, `brotli`|Default: `gzip`. Compression type used to calculate the compressed module sizes.|
66
66
|**`openAnalyzer`**|`{Boolean}`|Default: `true`. Automatically open report in default browser.|
67
67
|**`generateStatsFile`**|`{Boolean}`|Default: `false`. If `true`, webpack stats JSON file will be generated in bundle output directory|
@@ -122,7 +122,7 @@ Directory containing all generated bundles.
122
122
-r, --report <file> Path to bundle report file that will be generated in `static` mode. (default: report.html)
123
123
-t, --title <title> String to use in title element of html report. (default: pretty printed current date)
124
124
-s, --default-sizes <type> Module sizes to show in treemap by default.
125
-
Possible values: stat, parsed, compressed (default: parsed)
125
+
Possible values: stat, parsed, gzip, brotli (default: parsed)
126
126
--compression-algorithm <type> Compression algorithm that will be used to calculate the compressed module sizes.
127
127
Possible values: gzip, brotli (default: gzip)
128
128
-O, --no-open Don't open report in default browser automatically.
@@ -150,9 +150,13 @@ It is called "stat size" because it's obtained from Webpack's
150
150
This is the "output" size of your files. If you're using a Webpack plugin such
151
151
as Uglify, then this value will reflect the minified size of your code.
152
152
153
-
### `compressed`
153
+
### `gzip`
154
154
155
-
This is the size of running the parsed bundles/modules through compression.
155
+
This is the size of running the parsed bundles/modules through gzip compression.
156
+
157
+
### `brotli`
158
+
159
+
This is the size of running the parsed bundles/modules through Brotli compression.
156
160
157
161
<h2align="center">Selecting Which Chunks to Display</h2>
158
162
@@ -172,7 +176,7 @@ The Chunk Context Menu can be opened by right-clicking or `Ctrl`-clicking on a s
172
176
173
177
<h2align="center">Troubleshooting</h2>
174
178
175
-
### I don't see `compressed` or `parsed` sizes, it only shows `stat` size
179
+
### I don't see `gzip` or `parsed` sizes, it only shows `stat` size
176
180
177
181
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:
0 commit comments