
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
chunkalyse
Advanced tools
Analyzes Webpack bundle size
![]() |
---|
This utility uses Webpack's generated stats file.
webpack --profile --json > stats.json
Is analyses chunks and modules according to the structure output from your Webpack version and configuration.
Supports:
human
(default, see below)json
Pipe stats
webpack --config webpack.config.js --profile --json | npx chunkalyse
Pass file route
webpack --config webpack.config.js --profile --json > stats.json
npx chunkalyse stats.json
Install globally for continues use
npm i -g chunkalyse
webpack --config webpack.config.js --profile --json | chunkalyse
$ chunkalyse stats.json
main (331.2 kB)
• self: 243.8 kB (74%)
• core-js: 38.8 kB (12%)
• prop-types: 26.5 kB (8%)
...
$ chunkalyse stats.json --format json > chunkalised.json
const chunkalyse = require('chunkalyse');
const stats = require('./stats.json');
chunkalyse(stats); // Named summaries (one for each entry point)
{
main: {
size: 331215,
modules: {
'core-js': {
size: 38776,
percent: 12
},
self: {
size: 243771,
percent: 74
},
'style-loader': {
size: 12465,
percent: 4
},
...
}
}
}
{
moduleA: { size: 3461, modules: { ... } },
moduleB: { size: 2533, modules: { ... } },
moduleC: { size: 3574, modules: { ... } }
}
This project uses stats from other projects for research and testing purposes:
FAQs
🍰 Summarise webpack stats output file
We found that chunkalyse demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.