Package for check webpack-analyze-bundler result through checking results for two commits in git repo.
Go through this guide or check how it works in test project
npm install git-bundle-check
npm install webpack-bundle-analyzer
Add webpack-bundle-analyzer to plugins in webpack config and set options to:
{
analyzerMode: 'json',
reportFilename: '../bundle-sizes-info.json',
openAnalyzer: false,
}
WARNING! reportFilename always should be bundle-sizes-info.json
Use npx git-bundle-check
or add git-bundle-check
as script to your package.json.
Run command and answer for prompts.
Use npx git-bundle-check -h
for full information about using package in inline mode.