auto-liveload

0.0.1 • Public • Published

#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

Package Sidebar

Install

npm i auto-liveload

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • zhoujianlin