Socket
Book a DemoInstallSign in
Socket

auto-liveload

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-liveload

livereload.js more smart

0.0.1
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

#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

Keywords

liveloadjs

FAQs

Package last updated on 13 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.