Repository navigation
Why’s the dev server have to be so slow? #4423
Closed
j0lol
started this conversation in
Uncategorized
Replies: 1 comment 3 replies
Oh no. Don’t do this!! https://www.11ty.dev/docs/usage/incremental/ documents our ongoing work to improve incremental builds. I don’t think #3993 is listed there but should be. This is all considered in scope and a current goal of the project! Just not the live dev server bits: no no no, please don’t do this 🥹 |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi! I've got a sort-of-blog running where I run the dev server live (bad idea I know), but it really runs you up against a pain point of Eleventy: it must rebuild the world every time.
I get this for a layout, for sure. But editing a "leaf node" page, like an actual blog page, should probably be near instant.
I guess this is an issue of "discovering if a page has dependants" which could be a hard problem, but I don't know your codebase. Maybe building some tree of dependent pages on a build would help, and then concurrent builds could be "incremental", only falling back to a full rebuild if the cached deptree is invalidated for some reason (removing/adding an import, etc.)
Maybe this is largely out of scope! But it would probably make larger websites iterate faster.
(I think having more support for the use case of a "live reloading website that instantly updates" is a really good idea, but out of scope.)
All reactions