- run
yarn
to install - run
node stats.js
to outputwebpack-stats.json
Current we have two commits, one for webpack 4 https://github.com/chenxsan/test-webpack-stats-json/commit/eb77bcd08c8ffcc5e4b01a4223823951960b5b6c, another for webpack 5 https://github.com/chenxsan/test-webpack-stats-json/commit/81a9f590b582506e0a0e94eb82cd7c719cf7dfdd - you can check the diff here.