Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

koa-livereload

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Issues
File Explorer

Advanced tools

koa-livereload

Livereload script loader for Koa

    0.2.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
667
increased by8.28%

Weekly downloads

Readme

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

FAQs

Last updated on 08 Jun 2016

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc