/boot-livereload

Provides LiveReload.js compatible server as Boot task

Primary LanguageClojureOtherNOASSERTION

boot-livereload

Clojars Project

Boot task to create a LiveReload.js server. Automatically injects client JS to HTML files.

This works well with static page generators such as Perun. For use with ClojureScript apps, you should be looking at boot-reload instead.

  • Provides the livereload task
  • Doesn't provide HTTP server to serve your files, instead compose with another Boot task, like boot-alt-http

Usage

$ boot livereload --help

Dynamically served HTML file

If your HTML file is not in the fileset, the task can't automatically inject the JS code to page. In this case you should use the default port (35729) for Livereload server and either 1) use browser extensions, 2) add JS manually.

License

Copyright © 2015-2017 Juho Teperi

Distributed under the MIT License.