mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Fixes #518 - [v4] Make sure Marko hot reloading is always enabled when app is launched with browser-refresh
This commit is contained in:
parent
6038bb7823
commit
5baf472b81
@ -1,3 +1,5 @@
|
|||||||
|
require('./runtime/env-init');
|
||||||
|
|
||||||
var assign = require('object-assign');
|
var assign = require('object-assign');
|
||||||
var express = module.parent.require('express');
|
var express = module.parent.require('express');
|
||||||
var response = express.response;
|
var response = express.response;
|
||||||
@ -8,7 +10,7 @@ response.marko = response.marko || function(template, data) {
|
|||||||
'res.marko does not take a template name or path like res.render. ' +
|
'res.marko does not take a template name or path like res.render. ' +
|
||||||
'Instead you should use `require(\'./path/to/template.marko\')` ' +
|
'Instead you should use `require(\'./path/to/template.marko\')` ' +
|
||||||
'and pass the loaded template to this function.'
|
'and pass the loaded template to this function.'
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
var res = this;
|
var res = this;
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
require('./runtime/env-init');
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const resolveFrom = require('resolve-from');
|
const resolveFrom = require('resolve-from');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user