Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-inject-livereload

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-inject-livereload

Broccoli plugin for injecting livereload script into HTML

  • 1.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
311
increased by7675%
Maintainers
2
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 13 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc