# Disabling liveReload

**URL:** <https://forums.bitovi.com/t/disabling-livereload/341>\
**Category:** StealJS\
**Created:** [July 4, 2016, 3:24pm UTC](https://forums.bitovi.com/t/disabling-livereload/341 "2016-07-04T15:24:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![eben\_roux](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/eben_roux/32/380_2.png) [@eben\_roux](https://forums.bitovi.com/u/eben_roux)\
**Post date:** [July 4, 2016, 3:24pm UTC](https://forums.bitovi.com/t/disabling-livereload/341/1 "2016-07-04T15:24:30Z")

</div>

It seems as though some of my issues may have something to do with `done-ssr` and `liveReload`. I do not want service-side rendering so I tried hosting the donejs site using IIS Express through Visual Studio 2015 but then the `liveReload` tries to do its voodoo. I can see the options for `liveReload` here:

[http://stealjs.com/docs/steal.live-reload.options.html](http://stealjs.com/docs/steal.live-reload.options.html)

However, I have no idea where I would place those settings? Is this in the `package.json` file somewhere?

---

<div class="post-metadata">

**Author:** ![pYr0x](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/pyr0x/32/95_2.png) [@pYr0x](https://forums.bitovi.com/u/pYr0x)\
**Post date:** [July 4, 2016, 4:54pm UTC](https://forums.bitovi.com/t/disabling-livereload/341/3 "2016-07-04T16:54:33Z")

</div>

How does your package.json look ?

---

<div class="post-metadata">

**Author:** ![eben\_roux](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/eben_roux/32/380_2.png) [@eben\_roux](https://forums.bitovi.com/u/eben_roux)\
**Post date:** [July 4, 2016, 4:55pm UTC](https://forums.bitovi.com/t/disabling-livereload/341/4 "2016-07-04T16:55:54Z")

</div>

```
{
  "name": "sentinel",
  "version": "0.0.0",
  "description": "A management and monitoring solution for Shuttle.Esb implementations.",
  "homepage": "https://shuttle.github.io/shuttle-sentinel/",
  "author": {
	"name": "Eben Roux",
	"email": "me@ebenroux.co.za",
	"url": "www.ebenroux.co.za"
  },
  "scripts": {
	"test": "testee src/test.html --browsers firefox --reporter Spec",
	"start": "done-serve --port 8080",
	"develop": "done-serve --develop --port 8080",
	"document": "documentjs",
	"build": "node build"
  },
  "main": "src/app.js",
  "files": [
	"src"
  ],
  "keywords": [
	"shuttle",
	"shuttle",
	"esb",
	"shuttle",
	"sentinel",
	"sentinel",
	"monitoring",
	"soa",
	"esb"
  ],
  "system": {
	"main": "sentinel/app.js",
	"directories": {
	  "lib": "src"
	},
	"configDependencies": [
	  "live-reload",
	  "node_modules/can-zone/register"
	],
	"npmAlgorithm": "flat"
  },
  "dependencies": {
	"bootstrap": "^3.3.6",
	"can": "^2.3.16",
	"can-connect": "^0.5.0",
	"can-zone": "^0.5.0",
	"done-autorender": "^0.8.0",
	"done-component": "^0.4.0",
	"done-css": "~2.0.2",
	"done-serve": "^0.2.0",
	"generator-donejs": "^0.9.0",
	"i18next": "^3.3.1",
	"i18next-xhr-backend": "^0.6.0",
	"jquery": "~2.2.1",
	"steal": "^0.16.0"
  },
  "devDependencies": {
	"can-fixture": "^0.1.2",
	"documentjs": "^0.4.2",
	"donejs-cli": "^0.9.4",
	"donejs-deploy": "^0.4.0",
	"funcunit": "~3.0.0",
	"steal-qunit": "^0.1.1",
	"steal-tools": "^0.16.0",
	"testee": "^0.2.4"
  }
}
```

---

<div class="post-metadata">

**Author:** ![pYr0x](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/pyr0x/32/95_2.png) [@pYr0x](https://forums.bitovi.com/u/pYr0x)\
**Post date:** [July 4, 2016, 5:01pm UTC](https://forums.bitovi.com/t/disabling-livereload/341/5 "2016-07-04T17:01:55Z")

</div>

Remove ‘live-reload’ in config dependencies

---

<div class="post-metadata">

**Author:** ![eben\_roux](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/eben_roux/32/380_2.png) [@eben\_roux](https://forums.bitovi.com/u/eben_roux)\
**Post date:** [July 4, 2016, 5:05pm UTC](https://forums.bitovi.com/t/disabling-livereload/341/6 "2016-07-04T17:05:03Z")

</div>

Thanks Julian,

That did the trick. Can you perhaps explain why? 🙂

Is there some fundamental npm configuration structure I don’t understand, or is it stealjs-specific?

I like to understand how components interact and why I am doing what I’m doing…

---

<div class="post-metadata">

**Author:** ![pYr0x](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/pyr0x/32/95_2.png) [@pYr0x](https://forums.bitovi.com/u/pYr0x)\
**Post date:** [July 4, 2016, 6:04pm UTC](https://forums.bitovi.com/t/disabling-livereload/341/7 "2016-07-04T18:04:03Z")

</div>

a `configDependency` will load modules before the `main` module is loaded.

> <https://github.com/stealjs/steal/blob/master/ext/npm-load.js#L43>

the `live-reload` can be enabled see [readme](https://github.com/stealjs/live-reload)

if `live-reload` is enabled by the `configDependency` it will load live-reload module and execute [this file](https://github.com/stealjs/live-reload/blob/master/live.js)

it sets `liveReloadInstalled` = `true` and steal will check against it [https://github.com/stealjs/steal/blob/master/ext/npm-load.js#L151](https://github.com/stealjs/steal/blob/master/ext/npm-load.js#L151)

---

<div class="post-metadata">

**Author:** ![eben\_roux](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/eben_roux/32/380_2.png) [@eben\_roux](https://forums.bitovi.com/u/eben_roux)\
**Post date:** [July 5, 2016, 4:42am UTC](https://forums.bitovi.com/t/disabling-livereload/341/8 "2016-07-05T04:42:17Z")

</div>

Thanks for the information Julian,

However, unfortunately I still don’t see where the configuration/options for the live-reload is to be set.

Does the `configDependincies` in steal refer to “configure dependencies” or “configuration dependencies”. So does it mean the steal is dependent on the specified modules or does it mean that the configuration from those modules has to be loaded before the steal configuration.

I am finding it hard to get any traction as I have no clue what to do and I cannot seem to readily find the information I need. There seems to be a lot of information out there I just do not know how to put it all together. You know, the whole herding cats business 🙂

I just want to build a canjs site. I like the module loading from steal. Currently I don’t quite get donejs. It seems to be pulling a bunch of Bitovi technologies together with some generators. That is all good and nice but I need to understand the atomic bits before putting everything together.
