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

Split build HTML step in to batches #1829

Closed
Bouncey opened this issue Aug 15, 2017 · 4 comments
Closed

Split build HTML step in to batches #1829

Bouncey opened this issue Aug 15, 2017 · 4 comments

Comments

@Bouncey
Copy link
Contributor

Bouncey commented Aug 15, 2017

This is a feature request/question

At freeCodeCamp/guides we have ~2400 pages, which takes a --max_old_space_size of 4GB to build successfully. We are looking to expand the page count somewhere north of 10000 pages eventually, but we are bound by RAM limits due to the way webpack works.

Is it feasible to split the HTML build in to batches of say 500 pages each and build each batch separately? Would this help webpack release its hold on memory?

I have found the static-entry, but I would appreciate a pointer as to how this could be accomplished. I am more than willing to PR it.

@Bouncey
Copy link
Contributor Author

Bouncey commented Aug 15, 2017

Is #445 related?

@KyleAMathews
Copy link
Contributor

@Bouncey sorry for missing this issue! Yeah #445 is definitely related and would greatly ease the memory pressure larger sites are seeing.

@KyleAMathews
Copy link
Contributor

I'll add a bit more detail on #445 — would love a PR for it!

@benjaminhoffman
Copy link
Contributor

thx @Bouncey for the issue! Doing issue cleanup so closing this for now in favor of 445. Feel free to re-open if I'm mistaken or if you think your problem is different enough to justify its own issue.. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants