Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll autoreload browser page

It's possible to have a livereload (or browsersync) like system that run with jekyll serve without using other tools like grunt/gulp?

What I'm expecting is to edit a css, sass, html or md file and have the browser page auto reloading.

I'm using Jekyll 2.5.x

like image 508
lifeisfoo Avatar asked Sep 03 '15 10:09

lifeisfoo


1 Answers

As of January 2018, Jekyll 3.7 now has the --livereload flag.

jekyll serve automatically rebuilds the _site folder whenever changes are saved.

--livereload refreshes the browser with those changes.

So, use jekyll serve --livereload.

like image 163
DC.Azndj Avatar answered Nov 06 '22 03:11

DC.Azndj