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
|
* Copyright 2011 eBay Software Foundation
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* 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();
|
require('../hot-reload').enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.hasOwnProperty('MARKO_BROWSER_REFRESH')) {
|
// If process was launched with browser refresh then automatically
|
||||||
require('../browser-refresh').enable();
|
// enable browser-refresh
|
||||||
}
|
require('../browser-refresh').enable();
|
||||||
|
|
||||||
function loadSource(templatePath, compiledSrc) {
|
function loadSource(templatePath, compiledSrc) {
|
||||||
var templateModulePath = templatePath + '.js';
|
var templateModulePath = templatePath + '.js';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user