From c1fa5fdb404dd9914d888cccc971e79f9ad3b623 Mon Sep 17 00:00:00 2001 From: Kushan Joshi <0o3ko0@gmail.com> Date: Sat, 13 Feb 2016 17:32:30 +0530 Subject: [PATCH] Live reload documentation --- CONTRIBUTING.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7d4225fe6..1d9863fd1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -168,6 +168,15 @@ required for this. iD will be built to the `dist` directory. This directory is self-contained; you can copy it into the public directory of your webserver to deploy iD. +## Live reloading + +You can use [live-server](https://www.npmjs.com/package/live-server) *(npm module)* to +reload the browser automatically whenever there is a change in code. +1. run `npm install -g live-server` +2. run `live-server .` or `live-server dist` *(You will be automatically redirected to the local server page.)* + +*(Note: Sometimes auto reload might not display correctly and you might need to rebuild iD by running `make`.)* + ## Licensing iD is available under the [ISC License](https://opensource.org/licenses/ISC).