gulp-inject-reload
A simple gulp plugin to inject the livereload script to the end of html files. Works with gulp-livereload.
Usage:
Gulp
gulp;
Result
... html content of index.html ...
Options
Options are available for the various parts of the url (defaults below):
port: 35729 host: 'http://" + (location.host || "localhost").split(":")[0] + "' script: 'livereload.js' snipver: 1
Example with watch and gulp-livreload
var gulp = noop = noop less = watch = livereload = injectReload = ; // Allow turning dev tools off for production builds var dev = false; gulp; gulp; gulp; gulp;