liquid-labs / catalyst-scripts

Standard configurations and scripts useful when developing projects using Catalyst.
0 stars 1 forks source link

Incorporate bundle size analytics. #5

Open zanerock opened 5 years ago

zanerock commented 5 years ago

project size-visualize using (webpack-bundle-analyzer)[https://www.npmjs.com/package/webpack-bundle-analyzer]

project size-analyze using (`webpack-bundle-size-analyzer)[https://github.com/robertknight/webpack-bundle-size-analyzer]

Once done, can we check for evidence that the unused moment-timezone locales are not included? See https://reallifeprogramming.com/get-rid-of-some-fat-from-your-react-production-build-3a5bb4970305, which describes how to do this (though based on current bundle size, it may be the default react-scripts config already takes care of this?) If it's unclear, open a new issue.

jondavidjohn commented 5 years ago

I built a tool to help you analyze webpack bundles for size regressions, and report them directly to GitHub PRs. It's free for open source, so it might be worth checking out and helpful in this scenario.

https://packtracker.io

image