Shorten page generation time for local jekyll server

前端 未结 2 1411
栀梦
栀梦 2021-02-20 02:58

When running jekyll --server, the entire site is rebuilt. On a large enough site, this takes an exceedingly long time. Even with the --auto flag, which

2条回答
  •  囚心锁ツ
    2021-02-20 03:39

    This is a recurrent subject in Jekyll's issue tracker on Github. Unfortunately, it isn't one of the objectives. For example:

    • Make jekyll --auto specific
    • generate a site with about 60K posts, take forever

    Just search for the words "compile" and "time" and you'll be able to find more. It's a bit harder than it looks because there's the possibility of broken links.

    Also, if you're using LSI, use the latest version, because there was a fix related to it that makes it much faster.

    My only advice to you is to see if you really need all these posts (I know, I know), because it's probably the only answer you'd get from the issue tracker right now -- something that we all want to address, but no one wants to start.

    P.S.: Please post your problem on the issue tracker -- with more people complaining, it's much more possible for it to get fixed.

提交回复
热议问题