@deadb17/live-reload

A live reload server & client


License
MIT
Install
npm install @deadb17/live-reload@1.4.0

Documentation

live-reload

A live reload server & client

Docs

Usage:

  live-reload [<path>...] --port=somePort --host=someHost
              --delay=someDelay
              --key=<path-to-key-file> --cert=<path-to-crt-file>

    Runs a live-reload server on the host and port. It listens to
        changes on one or more paths and sends reload commands to
        any browser connected to it.

    If a delay is set then it will send the command once the
        file has changed and the delay has elapsed. This is
        useful if your changing many files at once and only
        want to reload say 1s after all files have been written
        to disk.

    If both key and cert are set, the server will run on https.

    To connect a browser to a live-reload server simply add
        <script src="//someHost:somePort"></script> to your page

Installation

npm install @deadb17/live-reload

Contributors

  • Raynos
  • DEADB17

MIT Licenced