vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
12.74k stars 2.06k forks source link

Progressive build #1991

Open Pandapip1 opened 1 year ago

Pandapip1 commented 1 year ago

Is your feature request related to a problem? Please describe.

The large website I'm using vitepress for takes a long time to build.

Describe the solution you'd like

A progressive build option, where vitepress only renders markdown files that have changed since the last build. Figuring out which files have changed or need re-rendering is left as an exercise to the implementer :)

Describe alternatives you've considered

No response

Additional context

No response

Validations

yyx990803 commented 1 year ago

This is technically challenging due to the way the app is built right now. I've tried to come up with simple solutions but proved too brittle. Definitely something I intend to explore in the long run, but it could require significant change in how the app is built.

Pandapip1 commented 1 year ago

Would it be possible to integrate with git and store the commit that the website was last built at?

KnorpelSenf commented 11 months ago

Another way to speed this up is to

which doesn't require caching and diff'ing.