bundle-stats 4.8.2-alpha.0 → 4.8.3

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.
Files changed (2) hide show
  1. package/README.md +10 -3
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -63,28 +63,35 @@ or
63
63
  yarn add --dev bundle-stats
64
64
  ```
65
65
 
66
- ## Webpack configuration
66
+ ## Output webpack stats
67
67
 
68
- The CLI is consuming the Webpack stats json. The following [stats options](https://webpack.js.org/configuration/stats) are required:
68
+ The CLI is consuming the Webpack stats JSON file. The following [webpack stats options](https://webpack.js.org/configuration/stats) are needed:
69
69
 
70
70
  ```js
71
71
  {
72
72
  stats: {
73
+ // required
73
74
  assets: true,
74
75
  chunks: true,
75
76
  modules: true,
77
+ // optional
76
78
  builtAt: true,
77
79
  hash: true
78
80
  }
79
81
  }
80
82
  ```
81
83
 
82
- You can output the stats json file using [webpack-cli](https://www.npmjs.com/package/webpack-cli):
84
+ [How to configure webpack for better debugging and monitoring](https://relative-ci.com/documentation/guides/webpack-config)
85
+
86
+ You can output the webpack stats JSON file using [webpack-cli](https://www.npmjs.com/package/webpack-cli) `--json` option:
83
87
 
84
88
  ```shell
85
89
  npx webpack --mode production --json artifacts/webpack-stats.json
86
90
  ```
87
91
 
92
+ - [How to output webpack stats JSON file using webpack-cli](https://relative-ci.com/documentation/guides/webpack-stats/webpack-cli)
93
+ - [How to output webpack stats JSON file using webpack-stats-plugin](https://relative-ci.com/documentation/guides/webpack-stats/webpack-stats-plugin)
94
+
88
95
  ## Usage
89
96
 
90
97
  ```shell
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bundle-stats",
3
- "version": "4.8.2-alpha.0",
3
+ "version": "4.8.3",
4
4
  "description": "In-depth bundle analyzer for webpack(bundle size, assets, modules, packages)",
5
5
  "bin": {
6
6
  "bundle-stats": "bin/index.js"
@@ -51,10 +51,10 @@
51
51
  },
52
52
  "homepage": "https://github.com/relative-ci/bundle-stats/blob/master/packages/cli#readme",
53
53
  "dependencies": {
54
- "@bundle-stats/cli-utils": "4.8.2-alpha.0",
55
- "@bundle-stats/plugin-webpack-filter": "4.8.2-alpha.0",
56
- "@bundle-stats/plugin-webpack-validate": "4.8.2-alpha.0",
57
- "@bundle-stats/utils": "4.8.2-alpha.0",
54
+ "@bundle-stats/cli-utils": "^4.8.3",
55
+ "@bundle-stats/plugin-webpack-filter": "^4.8.3",
56
+ "@bundle-stats/plugin-webpack-validate": "^4.8.3",
57
+ "@bundle-stats/utils": "^4.8.3",
58
58
  "boxen": "^5.0.0",
59
59
  "core-js": "^3.21.0",
60
60
  "fs-extra": "^11.0.0",
@@ -73,5 +73,5 @@
73
73
  "rimraf": "5.0.5",
74
74
  "typescript": "5.1.6"
75
75
  },
76
- "gitHead": "547700daffb01138b66f6710a7271fff4c1acd6d"
76
+ "gitHead": "e4ac3d91c0964ca6d013d96f0b50d1cf6b9b9f55"
77
77
  }