another-livereload

Another LiveReload Server in Node.js Version

another-LiveReload

Another LiveReload Server in Node.js Version.

What is LiveReload ? (livereload.com)[http://livereload.com/]

Install another-livereload width npmjs:

$ npm install another-livereload
$ anotherlr [-p port] [-i interval]

Do more complex tasks before reload pages by useing middlewares.

var path = require('path');
var lr = require('another-livereload');

lr.rules(/\.(css|scss|js|html)$/);

lr.use(/\.scss$/, function (file, msg) {
  // ...
});

lr.watch(path.join(__dirname, 'public'));

lr.run();