Automatically enable browser-refresh

This commit is contained in:
Patrick Steele-Idem 2015-09-10 13:00:07 -06:00
parent c0a84a8657
commit 037d4c5d82
2 changed files with 6 additions and 6 deletions

View File

@ -26,9 +26,9 @@ if (process.env.hasOwnProperty('MARKO_HOT_RELOAD')) {
require('../hot-reload').enable();
}
if (process.env.hasOwnProperty('MARKO_BROWSER_REFRESH')) {
require('../browser-refresh').enable();
}
// If process was launched with browser refresh then automatically
// enable browser-refresh
require('../browser-refresh').enable();
function loadSource(templatePath, compiledSrc) {
var templateModulePath = templatePath + '.js';