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

@ -1,12 +1,12 @@
/*
* Copyright 2011 eBay Software Foundation
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

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';