bundle-stats 3.3.0-alpha.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,7 +3,47 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [3.3.0-alpha.0](https://github.com/relative-ci/bundle-stats/compare/v3.2.2...v3.3.0-alpha.0) (2021-12-17)
6
+ ## [3.2.8](https://github.com/relative-ci/bundle-stats/compare/v3.2.7...v3.2.8) (2022-03-10)
7
+
8
+ **Note:** Version bump only for package bundle-stats
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.2.7](https://github.com/relative-ci/bundle-stats/compare/v3.2.6...v3.2.7) (2022-03-10)
15
+
16
+ **Note:** Version bump only for package bundle-stats
17
+
18
+
19
+
20
+
21
+
22
+ ## [3.2.6](https://github.com/relative-ci/bundle-stats/compare/v3.2.5...v3.2.6) (2022-03-04)
23
+
24
+ **Note:** Version bump only for package bundle-stats
25
+
26
+
27
+
28
+
29
+
30
+ ## [3.2.5](https://github.com/relative-ci/bundle-stats/compare/v3.2.4...v3.2.5) (2022-02-15)
31
+
32
+ **Note:** Version bump only for package bundle-stats
33
+
34
+
35
+
36
+
37
+
38
+ ## [3.2.4](https://github.com/relative-ci/bundle-stats/compare/v3.2.3...v3.2.4) (2022-01-17)
39
+
40
+ **Note:** Version bump only for package bundle-stats
41
+
42
+
43
+
44
+
45
+
46
+ ## [3.2.3](https://github.com/relative-ci/bundle-stats/compare/v3.2.2...v3.2.3) (2022-01-10)
7
47
 
8
48
  **Note:** Version bump only for package bundle-stats
9
49
 
package/README.md CHANGED
@@ -8,14 +8,14 @@
8
8
  <p align="center">
9
9
  <a href="https://www.npmjs.com/package/bundle-stats"><img src="https://img.shields.io/npm/v/bundle-stats.svg" /></a>
10
10
  <img src="https://img.shields.io/node/v/bundle-stats.svg" alt="Node version" />
11
- <a href="https://circleci.com/gh/relative-ci/bundle-stats"><img alt="CircleCI badge" src="https://circleci.com/gh/relative-ci/bundle-stats.svg"/></a>
11
+ <a href="https://github.com/relative-ci/bundle-stats/actions/workflows/build.yaml"><img alt="GitHub action" src="https://github.com/relative-ci/bundle-stats/actions/workflows/build.yaml/badge.svg" /></a>
12
12
  <a href="https://lgtm.com/projects/g/relative-ci/bundle-stats/context:javascript"><img alt="Language grade: JavaScript" src="https://img.shields.io/lgtm/grade/javascript/g/relative-ci/bundle-stats.svg?logo=lgtm&logoWidth=18"/></a>
13
13
  </p>
14
14
  <p align="center">
15
15
  - <a href="https://relative-ci.com/tools/webpack-bundle-stats/demo-multiple-jobs.html#/"><strong>Bundle size</strong> and totals by file type(css, js, img, etc)</a><br />
16
16
  - <a href="https://relative-ci.com/tools/webpack-bundle-stats/demo-multiple-jobs.html#/"><strong>Cache invalidation</strong>, Initial JS/CSS and other bundle specific metrics</a><br />
17
17
  - <a href="https://relative-ci.com/tools/webpack-bundle-stats/demo-multiple-jobs.html#/assets"><strong>Assets</strong> report (entrypoint, initial, types, changed, delta)</a><br />
18
- - <a href="https://relative-ci.com/tools/webpack-bundle-stats/demo-multiple-jobs.html#/modules"><strong>Modules</strong> report (changed, delta) by chunk</a><br />
18
+ - <a href="https://relative-ci.com/tools/webpack-bundle-stats/demo-multiple-jobs.html#/modules"><strong>Modules</strong> report (changed, delta, chunks, duplicate count and percentage)</a><br />
19
19
  - <a href="https://relative-ci.com/tools/webpack-bundle-stats/demo-multiple-jobs.html#/packages"><strong>Packages</strong> report (count, duplicate, changed, delta)</a><br />
20
20
  :star: <strong>Side by side comparison</strong> for multiple builds
21
21
  </p>
@@ -56,6 +56,7 @@ yarn add --dev bundle-stats
56
56
  ## Webpack configuration
57
57
 
58
58
  The CLI is consuming the Webpack stats json. The following [stats options](https://webpack.js.org/configuration/stats) are required:
59
+
59
60
  ```js
60
61
  {
61
62
  stats: {
@@ -69,6 +70,12 @@ The CLI is consuming the Webpack stats json. The following [stats options](https
69
70
  }
70
71
  ```
71
72
 
73
+ You can output the stats json file using [webpack-cli](https://www.npmjs.com/package/webpack-cli):
74
+
75
+ ```shell
76
+ npx webpack --mode production --json artifacts/webpack-stats.json
77
+ ```
78
+
72
79
  ## Usage
73
80
 
74
81
  ```shell