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
+5-5Lines changed: 5 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`, `gzip`|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`, `compressed`|Default: `parsed`. Module sizes to show in report by default. [Size definitions](#size-definitions) section describes what these values mean.|
65
65
|**`openAnalyzer`**|`{Boolean}`|Default: `true`. Automatically open report in default browser.|
66
66
|**`generateStatsFile`**|`{Boolean}`|Default: `false`. If `true`, webpack stats JSON file will be generated in bundle output directory|
67
67
|**`statsFilename`**|`{String}`|Default: `stats.json`. Name of webpack stats JSON file that will be generated if `generateStatsFile` is `true`. It can be either an absolute path or a path relative to a bundle output directory (which is output.path in webpack config).|
@@ -121,7 +121,7 @@ Directory containing all generated bundles.
121
121
-r, --report <file> Path to bundle report file that will be generated in `static` mode. (default: report.html)
122
122
-t, --title <title> String to use in title element of html report. (default: pretty printed current date)
123
123
-s, --default-sizes <type> Module sizes to show in treemap by default.
124
-
Possible values: stat, parsed, gzip (default: parsed)
124
+
Possible values: stat, parsed, compressed (default: parsed)
125
125
-O, --no-open Don't open report in default browser automatically.
126
126
-e, --exclude <regexp> Assets that should be excluded from the report.
127
127
Can be specified multiple times.
@@ -147,9 +147,9 @@ It is called "stat size" because it's obtained from Webpack's
147
147
This is the "output" size of your files. If you're using a Webpack plugin such
148
148
as Uglify, then this value will reflect the minified size of your code.
149
149
150
-
### `gzip`
150
+
### `compressed`
151
151
152
-
This is the size of running the parsed bundles/modules through gzip compression.
152
+
This is the size of running the parsed bundles/modules through compression.
153
153
154
154
<h2align="center">Selecting Which Chunks to Display</h2>
155
155
@@ -169,7 +169,7 @@ The Chunk Context Menu can be opened by right-clicking or `Ctrl`-clicking on a s
169
169
170
170
<h2align="center">Troubleshooting</h2>
171
171
172
-
### I don't see `gzip` or `parsed` sizes, it only shows `stat` size
172
+
### I don't see `compressed` or `parsed` sizes, it only shows `stat` size
173
173
174
174
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