Jekyll自动重装 [英] Jekyll auto reloading

查看:58
本文介绍了Jekyll自动重装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

第一次使用Jekyll,并且看起来自动重载功能(运行jekyll --auto --server)仅由降价文件的更新触发.

Working with Jekyll for the first time, and it looks like the auto reload functionality (running jekyll --auto --server) is only triggered by updates to markdown files.

这是正常现象吗?还有什么方法可以更改其他类型的文件,例如css(我正在使用scss)或_layouts中的html文件来触发自动重新加载吗?

Is this the normal behavior? And is there any way to get changes to other types of files like css (I'm using scss) or html files in _layouts to trigger an auto-reload as well?

推荐答案

从版本2.4开始,Jekyll将自动监视默认情况下.只需运行jekyll serve.

As of version 2.4 Jekyll will auto-watch by default. Simply run jekyll serve.

这篇关于Jekyll自动重装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆