Assess impact of new code/deps on the end-user initial bundle size and monitor it directly in your Pull Request changes via TravisCI. ????
It makes sure to track only CRA JS chunks present in index.html.
ℹ️ This package is in its early stages. More features on the way. Suggestions welcome!
$ yarn add --dev analyze-cra-bundle
$ analyze-cra-bundle OPTIONS -f, --buildFolderPath=buildFolderPath [default: build] -h, --help show help -v, --version show version
⚠️ Warning: Make sure to build your app before running the command:
yarn build && analyze-cra-bundle
Keep an eye on the bundle size in your Pull Requests with a extra status check ????
ANALYZE_CRA_GITHUB_TOKENto your environment variables in the TravisCI project settings.
"bundlesize": "analyze-cra-bundle"to your
yarn bundlesizeto your