-
Notifications
You must be signed in to change notification settings - Fork 350
Live reload
Nako Sung edited this page Nov 24, 2015
·
3 revisions
Live reload is not a black magic. It just monitors files and triggers some action. You can limit live-reload scope by implementing your own logic. eg. devjade.js
is monitoring jade files and refreshes only UI widgets.
main.js
require('devrequire')('myApp')
myApp.js
module.exports = function() {
console.log("initializing")
let actor = new Actor(GWorld)
return function() {
console.log("uninitializing")
actor.DestroyActor()
}
}
If init/uninit
pair doesn't match, there will be logic leakage
.