tinylrs
Version:
A tiny server that watch files changed and refresh browser page,via livereload.js and websocket,based on tiny-lr
20 lines (19 loc) • 334 B
JavaScript
/**
* liveReload
* @author Froguard
* @date 2016/9/19.
*/
var lrs = require("./lib/lrServer");
// create
function create(options){
// {
// port: 35729,
// lrPath:"",
// watchList:["./dist/**/*.*"],
// svrOpts:{
// }
// }
return lrs(options || {});
}
// exports
module.exports = create;