-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Description
We have quite a lot of dependencies https://github.com/appirio-tech/connect-app/network/dependencies and I'm not sure if we don't have duplicates or unnecessary small ones that we can remove and optimize.
The goal is to improve the infrastructure for connect-app so we have less dependencies and compile the app to a smaller bundle size.
-
Let's use tools like https://github.com/webpack-contrib/webpack-bundle-analyzer to track what duplicates we have, eliminate mass library include (lodash locales can be safely removed), and trim down the size of the package in overall.
-
Update the packages to the latest stable versions without breaking the CI/CD deployment/builds.
Sources:
- https://medium.lucaskatayama.com/reducing-bundle-js-size-from-webpack-8a9c3adbdad4
- https://reactjs.org/docs/optimizing-performance.html#webpack
- https://hackernoon.com/reduce-webpack-bundle-size-for-production-880bb6b2c72f
- https://hackernoon.com/optimising-your-application-bundle-size-with-webpack-e85b00bab579
- https://medium.com/@arturarsalanov/webpack-optimizing-your-bundle-size-ab0c90b1bf03
to name a few, may not be the best sources.