steal-tools live-reload

  • function
steal-tools.cmd.live-reload  

Starts a live-reload Web Socket server. Used with live-reload, allows you to develop without ever refreshing the browser.

steal-tools live-reload [--OPTION_NAME OPTION_VALUE]...

Parameters

  1. OPTION_NAME {String}

    Any config or options name in build.

  2. OPTION_VALUE {String}

    The value of OPTION_NAME.

steal-tools live-reload --live-reload-port PORT

Parameters

  1. --live-reload-port=8012 {Number}Optional

    Web Socket port to use for connecting with browser clients.

Use

If using npm simply type:

> steal-tools live-reload

To start a Web Socket server. Then in your package.json add:

{
  "steal": {
    "configDependencies": [
      "live-reload"
    ]
  }
}

Create an html page:

<script src="node_modules/steal/steal.js"></script>

And open it in your browser. See the live-reload documentation to learn how to configure your application to respond to reload events (such as re-rendering when needed).

Help us improve StealJS by taking our community survey