jekyll 命令 bundle exec jekyll serve --incremental 是什么意思?

What does the jekyll command bundle exec jekyll serve --incremental mean?

jekyll 命令的作用是什么:

$ bundle exec jekyll serve --incremental

我怎样才能让它只重建我修改/更新的那些页面而不是构建整个网站?

bundle exec 在当前目录中寻找 Gemfile,你应该在 Jekyll 根文件夹中 运行。

如果您没有 Gemfile,那么您可以使用 bundle init 创建一个并添加您需要的 gem。

jekyll serve 出于开发目的在本地为您的站点提供服务。

最后,--incremental 标志满足您的需求:

only re-builds posts and pages that have changed