0.3.3 • Published 10 years ago

liveload v0.3.3

Weekly downloads
36
License
-
Repository
github
Last release
10 years ago

#liveload

A middle ware of connect/express which tells the browser to reload page/css when there's server side change without having any change in the client file.

##Installation

via npm:

$ npm install -g liveload

##Use as static server

Goto the directory you want to serve, and type:

$ liveload

Open your browser and then edit the html/js/css file as you like, then you can see the magic.

##Use as connect middleware

var connect = require('connect')
    , http = require('http')
    , io = require('socket.io')
    , liveload = require('../');
var app = connect()
var server = http.createServer(app);
    io = io.listen(server);
app.use(liveload({io:io, root:root, socket:true}));

##options

  • io socket.io instance
  • root root directory for watching files
  • socket whether to include socket.io client JS file automatically for html content
  • ext additional extensions(other than js, html, css) for file watching
0.3.3

10 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

12 years ago