šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

koa-livereload

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-livereload

Livereload script loader for Koa

0.2.0
latest
Source
npm
Version published
Weekly downloads
182
-15.35%
Maintainers
1
Weekly downloads
Ā 
Created
Source

koa-livereload Build Status

koa middleware for adding livereload script to the response body. no browser plugin is needed.

install

npm install koa-livereload --save-dev

How to use

this middleware can be used with a LiveReload server e.g. grunt-contrib-watch.

koa-livereload itself does not serve the livereload.js script.

example

  app.use(livereload());

example with option

  app.use(livereload({
    // if you change livereload server port, set "port" option
    port : 30211
  }));
  app.use(livereload({
    // if you want to set livereload.js directly, set the "src" option
    src  : "http://localhost:35729/livereload.js?snipver=1"
  }));
  app.use(livereload({
    // if you want certain paths to be excluded from injection (i.e. Angular partials/views path)
    excludes  : ['/partials']
  }));

credits

tests

make test

license

MIT

Keywords

livereload

FAQs

Package last updated on 08 Jun 2016

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