Speed up Jekyll serve

Written by on

At the time of this article, I have written over 250 articles in my Jekyll project. Which means, running jekyll serve can take a very long time. When you’re trying to make small incremental changes and hoping to quickly see the results in the browser, the process can become a bit frustrating.

One way to speed up the jekyll serve process is to just have Jekyll build with the latest post. Since in most scenarios, I’m just proof-reading my latest article, this is ideal.

To render the latest post you’ll want to pass along the --limit_posts option with a value of 1. So the entire command looks like jekyll serve --limit_posts 1.

Enjoyed the article?

I'm currently writing a book on making websites with Jekyll.

Tell me more!

:wave: Hey hey, I'm Michael Lee! I really appreciate you taking the time to read this article.

If you'd more articles like this, you can get them by email.

Previous post: What's the purpose?