bundle-stats 4.8.2 → 4.8.4-beta.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/README.md +10 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -63,28 +63,35 @@ or
|
|
|
63
63
|
yarn add --dev bundle-stats
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
##
|
|
66
|
+
## Output webpack stats
|
|
67
67
|
|
|
68
|
-
The CLI is consuming the Webpack stats
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "4.8.4-beta.0",
|
|
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": "
|
|
55
|
-
"@bundle-stats/plugin-webpack-filter": "
|
|
56
|
-
"@bundle-stats/plugin-webpack-validate": "
|
|
57
|
-
"@bundle-stats/utils": "
|
|
54
|
+
"@bundle-stats/cli-utils": "4.8.4-beta.0",
|
|
55
|
+
"@bundle-stats/plugin-webpack-filter": "4.8.4-beta.0",
|
|
56
|
+
"@bundle-stats/plugin-webpack-validate": "4.8.4-beta.0",
|
|
57
|
+
"@bundle-stats/utils": "4.8.4-beta.0",
|
|
58
58
|
"boxen": "^5.0.0",
|
|
59
59
|
"core-js": "^3.21.0",
|
|
60
60
|
"fs-extra": "^11.0.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"yargs": "^17.4.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@playwright/test": "1.40.
|
|
67
|
+
"@playwright/test": "1.40.1",
|
|
68
68
|
"@types/fs-extra": "^11.0.0",
|
|
69
69
|
"@types/listr": "^0.14.4",
|
|
70
70
|
"@types/yargs": "^17.0.20",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"rimraf": "5.0.5",
|
|
74
74
|
"typescript": "5.1.6"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "f9c3bef726c62d817ff6c7d27ce1987e9b5701c8"
|
|
77
77
|
}
|