mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Automatically enable browser-refresh
This commit is contained in:
parent
c0a84a8657
commit
037d4c5d82
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user