0.0.1 • Published 9 years ago

auto-liveload v0.0.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
9 years ago

#auto-liveload

  • more smart livereload

说明

  • inculde tiny-lr
  • we only change the liveload.js to let it more smart do notreload any time ,just when the js source in the page change ,it will reload
  • 更智能的liveload 只有页面使用js资源被改变,才进行reload, css等改变无需reload

使用

 var livereload = require('auto-liveload');
  var lrPort = options.lrPort || 35729;
  app.use(require('koa-livereload')({
      port: lrPort
  }));
  livereload({port: lrPort}); //start
  livereload.changed.apply(null,getFiles(data))//改变
  livereload.livereloadPath //get the liveload.js path
0.0.1

9 years ago