首页 > 解决方案 > Jekyll 构建时间突然超长

问题描述

我突然在这个项目上花费了很长的构建时间,我不确定原因是什么。生成可能需要 60 秒以上,最短的时间是 20 秒。我已经完成了从排除node_modules这个问题的所有工作Jekyll 编译似乎太慢了,添加--incremental也没有任何区别。我优化了图像,甚至完全重新安装了 Ruby。下面是结果bundle exec jekyll build --profile

> Configuration file: /Users/lesliebehum/Development/sary/_config.yml
>             Source: /Users/lesliebehum/Development/sary
>        Destination: /Users/lesliebehum/Development/sary/_site  Incremental build: disabled. Enable with --incremental
>       Generating... 
> 
> Filename                  | Count |  Bytes |  Time
> --------------------------+-------+--------+------
> _layouts/default.html     |     5 | 19.68K | 0.003
> _includes/menu.html       |     5 |  7.19K | 0.001 index.html                |     1 |  2.62K | 0.000
> _pages/contact.html       |     1 |  1.46K | 0.000
> _includes/treatments.html |     1 |  1.32K | 0.000
> _includes/form.html       |     1 |  1.34K | 0.000
> _includes/footer.html     |     1 |  0.94K | 0.000
> 
>  
>                     done in 68.093 seconds.  Auto-regeneration: disabled. Use --watch to enable.

似乎没有什么需要特别长时间。我正在从事其他 Jekyll 项目,这些项目大约在 1 秒内生成,而且它们要大得多。关于可能导致这种情况的任何见解?

Github 仓库在这里

标签: rubyperformancejekyllliquid

解决方案


推荐阅读