broccoli-inject-livereload

    1.6.0 • Public • Published

    broccoli-inject-livereload

    Build Status Dependency Status DevDependency Status Npm downloads Npm Version Git tag Github issues License

    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.

    Installation

    npm install broccoli-inject-livereload --save-dev

    Example using a single html target

    const BroccoliInjectLivereload = require('broccoli-inject-livereload')
    
    const reloadable = new BroccoliInjectLivereload('app', {
        target: 'index.html'
    })
    
    module.exports = reloadable

    Example using a regular expression to target multiple html files

    const BroccoliInjectLivereload = require('broccoli-inject-livereload')
    
    const reloadable = new BroccoliInjectLivereload('app', {
        target: /^[a-zA-Z._-]+.html$/
    })
    
    module.exports = reloadable

    Example using a costum port

    const BroccoliInjectLivereload = require('broccoli-inject-livereload')
    
    const reloadable = new BroccoliInjectLivereload('app', {
        target: 'index.html', 
        livereload: {
            port: 12345
        }
    })
    
    module.exports = reloadable

    License

    This project is distributed under the MIT license.

    Install

    npm i broccoli-inject-livereload

    DownloadsWeekly Downloads

    40

    Version

    1.6.0

    License

    MIT

    Unpacked Size

    61.8 kB

    Total Files

    18

    Last publish

    Collaborators

    • dremora
    • stfsy