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: CHANGELOG.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,9 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
19
19
***Improvement**
20
20
* Parse bundles as ES modules based on stats JSON information ([#649](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/649) by [@eamodio](https://github.com/eamodio))
21
21
22
+
***New Feature**
23
+
* Add support for Brotli compression ([#663](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/663) by [@dcsaszar](https://github.com/dcsaszar))
24
+
22
25
## 4.10.2
23
26
24
27
***Bug Fix**
@@ -75,7 +78,7 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
75
78
76
79
## 4.6.0
77
80
78
-
***New Feature**
81
+
***New Feature**
79
82
* Support outputting different URL in server mode ([#520](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/520) by [@southorange1228](https://github.com/southorange1228))
80
83
* Use deterministic chunk colors (#[501](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/501) by [@CreativeTechGuy](https://github.com/CreativeTechGuy))
81
84
@@ -108,19 +111,19 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
108
111
109
112
***Improvement**
110
113
* Keep treemap labels visible during zooming animations for better user experience ([#414](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/414) by [@stanislawosinski](https://github.com/stanislawosinski))
111
-
114
+
112
115
***Bug Fix**
113
116
* Don't show an empty tooltip when hovering over the FoamTree attribution group or between top-level groups ([#413](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/413) by [@stanislawosinski](https://github.com/stanislawosinski))
114
-
117
+
115
118
***Internal**
116
119
* Upgrade FoamTree to version 3.5.0, replace vendor dependency with an NPM package ([#412](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/412) by [@stanislawosinski](https://github.com/stanislawosinski))
117
-
120
+
118
121
## 4.3.0
119
122
120
123
***Improvement**
121
124
* Replace express with builtin node server, reducing number of dependencies ([#398](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/398) by [@TrySound](https://github.com/TrySound))
122
125
* Move `filesize` to dev dependencies, reducing number of dependencies ([#401](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/401) by [@realityking](https://github.com/realityking))
123
-
126
+
124
127
***Internal**
125
128
* Replace Travis with GitHub actions ([#402](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/402) by [@valscion](https://github.com/valscion))
126
129
@@ -145,10 +148,10 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
145
148
146
149
***Improvement**
147
150
* Support for Webpack 5
148
-
151
+
149
152
***Bug Fix**
150
153
* Prevent crashes when `openAnalyzer` was set to true in environments where there's no program to handle opening. ([#382](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/382) by [@wbobeirne](https://github.com/wbobeirne))
151
-
154
+
152
155
***Internal**
153
156
* Updated dependencies
154
157
* Added support for multiple Webpack versions in tests
@@ -157,7 +160,7 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
157
160
158
161
***New Feature**
159
162
* Adds option `reportTitle` to set title in HTML reports; default remains date of report generation ([#354](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/354) by [@eoingroat](https://github.com/eoingroat))
160
-
163
+
161
164
***Improvement**
162
165
* Added capability to parse bundles that have child assets generated ([#376](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/376) by [@masterkidan](https://github.com/masterkidan) and [#378](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/378) by [@https://github.com/dabbott](https://github.com/https://github.com/dabbott))
163
166
@@ -184,7 +187,7 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
184
187
185
188
***Bug Fix**
186
189
* Add leading zero to hour & minute on `<title />` when needed ([#314](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/314) by [@mhxbe](https://github.com/mhxbe))
187
-
190
+
188
191
***Internal**
189
192
* Update some dependencies to get rid of vulnerability warnings ([#339](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/339))
190
193
@@ -297,7 +300,7 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
297
300
298
301
***Improvements**
299
302
* Nested folders that contain only one child folder are now visually merged i.e. `folder1 => folder2 => file1` is now shown like `folder1/folder2 => file1` (thanks to [@varun-singh-1](https://github.com/varun-singh-1) for the idea)
300
-
303
+
301
304
***Internal**
302
305
* Dropped support for Node.js v4
303
306
* Using MobX for state management
@@ -307,10 +310,10 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
307
310
308
311
***Improvement**
309
312
* Pretty-format the generated stats.json ([#180](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/180)) [@edmorley](https://github.com/edmorley))
Copy file name to clipboardExpand all lines: README.md
+26-19Lines changed: 26 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ This module will help you:
45
45
4. Optimize it!
46
46
47
47
And the best thing is it supports minified bundles! It parses them to get real size of bundled modules.
48
-
And it also shows their gzipped sizes!
48
+
And it also shows their gzipped or Brotli sizes!
49
49
50
50
<h2align="center">Options (for plugin)</h2>
51
51
@@ -61,7 +61,8 @@ new BundleAnalyzerPlugin(options?: object)
61
61
|**`analyzerUrl`**|`{Function}` called with `{ listenHost: string, listenHost: string, boundAddress: server.address}`. [server.address comes from Node.js](https://nodejs.org/api/net.html#serveraddress)| Default: `http://${listenHost}:${boundAddress.port}`. The URL printed to console with server mode.|
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`, `gzip`, `brotli`|Default: `parsed`. Module sizes to show in report by default. [Size definitions](#size-definitions) section describes what these values mean.|
65
+
|**`compressionAlgorithm`**|One of: `gzip`, `brotli`|Default: `gzip`. Compression type used to calculate the compressed module sizes.|
65
66
|**`openAnalyzer`**|`{Boolean}`|Default: `true`. Automatically open report in default browser.|
66
67
|**`generateStatsFile`**|`{Boolean}`|Default: `false`. If `true`, webpack stats JSON file will be generated in bundle output directory|
67
68
|**`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).|
@@ -111,23 +112,25 @@ Directory containing all generated bundles.
111
112
### `options`
112
113
113
114
```
114
-
-V, --version output the version number
115
-
-m, --mode <mode> Analyzer mode. Should be `server`, `static` or `json`.
116
-
In `server` mode analyzer will start HTTP server to show bundle report.
117
-
In `static` mode single HTML file with bundle report will be generated.
118
-
In `json` mode single JSON file with bundle report will be generated. (default: server)
119
-
-h, --host <host> Host that will be used in `server` mode to start HTTP server. (default: 127.0.0.1)
120
-
-p, --port <n> Port that will be used in `server` mode to start HTTP server. Should be a number or `auto` (default: 8888)
121
-
-r, --report <file> Path to bundle report file that will be generated in `static` mode. (default: report.html)
122
-
-t, --title <title> String to use in title element of html report. (default: pretty printed current date)
123
-
-s, --default-sizes <type> Module sizes to show in treemap by default.
124
-
Possible values: stat, parsed, gzip (default: parsed)
125
-
-O, --no-open Don't open report in default browser automatically.
126
-
-e, --exclude <regexp> Assets that should be excluded from the report.
127
-
Can be specified multiple times.
128
-
-l, --log-level <level> Log level.
129
-
Possible values: debug, info, warn, error, silent (default: info)
130
-
-h, --help output usage information
115
+
-V, --version output the version number
116
+
-m, --mode <mode> Analyzer mode. Should be `server`, `static` or `json`.
117
+
In `server` mode analyzer will start HTTP server to show bundle report.
118
+
In `static` mode single HTML file with bundle report will be generated.
119
+
In `json` mode single JSON file with bundle report will be generated. (default: server)
120
+
-h, --host <host> Host that will be used in `server` mode to start HTTP server. (default: 127.0.0.1)
121
+
-p, --port <n> Port that will be used in `server` mode to start HTTP server. Should be a number or `auto` (default: 8888)
122
+
-r, --report <file> Path to bundle report file that will be generated in `static` mode. (default: report.html)
123
+
-t, --title <title> String to use in title element of html report. (default: pretty printed current date)
124
+
-s, --default-sizes <type> Module sizes to show in treemap by default.
125
+
Possible values: stat, parsed, gzip, brotli (default: parsed)
126
+
--compression-algorithm <type> Compression algorithm that will be used to calculate the compressed module sizes.
127
+
Possible values: gzip, brotli (default: gzip)
128
+
-O, --no-open Don't open report in default browser automatically.
129
+
-e, --exclude <regexp> Assets that should be excluded from the report.
130
+
Can be specified multiple times.
131
+
-l, --log-level <level> Log level.
132
+
Possible values: debug, info, warn, error, silent (default: info)
@@ -151,6 +154,10 @@ as Uglify, then this value will reflect the minified size of your code.
151
154
152
155
This is the size of running the parsed bundles/modules through gzip compression.
153
156
157
+
### `brotli`
158
+
159
+
This is the size of running the parsed bundles/modules through Brotli compression.
160
+
154
161
<h2align="center">Selecting Which Chunks to Display</h2>
155
162
156
163
When opened, the report displays all of the Webpack chunks for your project. It's possible to filter to a more specific list of chunks by using the sidebar or the chunk context menu.
0 commit comments