This plugin injects a reference to the livereload script into your HTML files. Please note that the plugin will only modify files with .html
extension that match the target property and simply copy everything else.
npm install broccoli-inject-livereload --save-dev
const BroccoliInjectLivereload = require('broccoli-inject-livereload')
const reloadable = new BroccoliInjectLivereload('app', {
target: 'index.html'
})
module.exports = reloadable
const BroccoliInjectLivereload = require('broccoli-inject-livereload')
const reloadable = new BroccoliInjectLivereload('app', {
target: /^[a-zA-Z._-]+.html$/
})
module.exports = reloadable
const BroccoliInjectLivereload = require('broccoli-inject-livereload')
const reloadable = new BroccoliInjectLivereload('app', {
target: 'index.html',
livereload: {
port: 12345
}
})
module.exports = reloadable
This project is distributed under the MIT license.