EyeSpy

CSS reloader & pre-processor watcher

A small CSS reloader. Will watch files specified and tell the clients listening which file has been changed upon which the client will reload the approriate CSS file.

Can have actions taken when files in a directory change (editing .less/.sass files for example). The action can then runa  command that compiles the newly edited file. The recompiled CSS file is then refreshed in the browser.

Usage

java -jar eyespy.jar --help

Example bash script

#!/bin/sh

cd `dirname "$0"`

java -jar eyespy.jar --settings settings.edn project1

 

Download JAR

In the browser

<script type="text/javascript" src="/path/to/eyespy.js"></script>

<script type="text/javascript">

eyespy.init();

</script>