-
Notifications
You must be signed in to change notification settings - Fork 9
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
Server: Take less memory during Webpack build #769
Comments
Here's a few idea from meta.ai:
|
Not really related to the build itself, but more to the content, here's what our builds look like (in od_nationale) with the help of https://github.com/webpack-contrib/webpack-bundle-analyzer Here's a couple of general idea. Our json/geojson files maybe should not be part of the builds but could be downloaded on demand if necessary. Also, why do we have 2 different versions of free-solid-svg-icons? (I suppose it's 2 different ones, but they do take a lot of space!) I think the locales include all languages preloaded. We should preload the language on demand only and fetch the locales file as necessary, like the configuration that we have in Transition (though this one also downloads all files for all langues). Why turf-jsts.min.js and another @Turf block on the left? |
@tahini |
@greenscientist Did we fix this issue? |
@samuel-duhaime not really, we mitigated by capping the memory at build time, but did not change anything in the build process itself, which means it's still building the whole too big application in one package. |
Issue
Problems
During an OVH maintenance restart, all our servers went down, because we had memory problems.
Translate from @greenscientist
Description
Take less memory during Webpack build
The text was updated successfully, but these errors were encountered: