koa-livereload
Advanced tools
Weekly downloads
Readme
koa middleware for adding livereload script to the response body. no browser plugin is needed.
npm install koa-livereload --save-dev
this middleware can be used with a LiveReload server e.g. grunt-contrib-watch.
koa-livereload
itself does not serve the livereload.js
script.
app.use(livereload());
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']
}));
make test
MIT
FAQs
Livereload script loader for Koa
The npm package koa-livereload receives a total of 665 weekly downloads. As such, koa-livereload popularity was classified as not popular.
We found that koa-livereload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.