steal-tools live-reload

  • function  

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]...


  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


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

    Web Socket port to use for connecting with browser clients.


If using npm simply type:

> steal-tools live-reload

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

  "steal": {
    "configDependencies": [

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