Jekyll Browsersync
Add live reloading to your Jekyll development using Browsersync.
Requirements
- Jekyll >= 3
- Browsersync installed
- globally (
npm install -g browser-sync) OR - locally (
npm install browser-sync)
- globally (
Installation
Add this line to your application's Gemfile:
gem 'jekyll-browsersync', group: [:jekyll_plugins]
Then install it
$ bundle
Usage
Once you have it installed, you should have a new browser-sync command under Jekyll.
$ bundle exec jekyll browser-sync
If you have Browsersync installed in a custom location, you can specify this with the
--browser-sync option.
$ bundle exec jekyll browsersync --browser-sync ~/bin/browser-sync
If you would like to serve the site using https, use the --https option.
$ bundle exec jekyll bs --https
Contributing
- Fork it (https://github.com/mloberg/jekyll-browsersync/fork)
- Create your feature branch (
git checkout -b feature/my-awesome-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin feature/my-awesome-feature) - Create new Pull Request
TODO
- Write tests