steal-tools live-reload
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
-
OPTION_NAME
{String}Any
configoroptionsname in build. -
OPTION_VALUE
{String}The value of
OPTION_NAME.
steal-tools live-reload --live-reload-port PORT
Parameters
-
--live-reload-port
=8012{Number}OptionalWeb Socket port to use for connecting with browser clients.
Use
If using npm simply type:
To start a Web Socket server. Then in your
package.jsonadd:Create an html page:
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).