Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    another-livereloadpublic

    another-LiveReload

    Another LiveReload Server in Node.js Version.

    What is LiveReload ? livereload.com

    Installation

    Install another-livereload width npmjs:

    $ npm install another-livereload
    

    Quickstart

    $ anotherlr [-p port] [-i interval]
    

    Middleware

    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, next) {
      // ...
      next();
    });
    
    lr.watch(path.join(__dirname, 'public'));
    
    lr.run();
    

    License

    © 2013, Po-Ying Chen, distributed under the MIT license.

    Keywords

    none

    install

    npm i another-livereload

    Downloadsweekly downloads

    3

    version

    0.0.6

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar