Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimise/minimise webpack bundle #343

Open
Falsal opened this issue May 31, 2024 · 0 comments
Open

Optimise/minimise webpack bundle #343

Falsal opened this issue May 31, 2024 · 0 comments
Labels
cleanup Cleanup old code

Comments

@Falsal
Copy link
Collaborator

Falsal commented May 31, 2024

Currently we have a large sized bundle (abt 700kb) , we need to make it smaller

A tool that can help visualise the problem is called webpack-bundle-analyzer :
https://www.npmjs.com/package/webpack-bundle-analyzer

we are at the limits of what is acceptable to the build. So, some hints are image sizes, the separation of assets when bundling , another item for optimising our code base is "moment" a package which takes a lot of space , this one we could replace with pure javascript, we use moment as a library in a few places and similar to SVG it showed on the tool to have a large part. Another package is lodash.
Blogs on the subject:
https://www.reddit.com/r/reactjs/comments/79i30p/how_much_is_your_production_bundle_size/
Ways to begin reducing bundle size:
https://blog.jakoblind.no/3-ways-to-reduce-webpack-bundle-size/
on stackoverflow : https://stackoverflow.com/questions/73548792/webpack-with-svger-causing-huge-bundle-size .

@Falsal Falsal added the enhancement New feature or request label May 31, 2024
@Falsal Falsal self-assigned this May 31, 2024
@Falsal Falsal added this to Zuugle May 31, 2024
@Falsal Falsal moved this to Todo in Zuugle May 31, 2024
@martinheppner martinheppner added cleanup Cleanup old code and removed enhancement New feature or request labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Cleanup old code
Projects
Status: Todo
Development

No branches or pull requests

2 participants