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
@ -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.
|
||||
|
||||
@ -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