mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Fixes #58 Added support for MARKO_CLEAN env variable
This commit is contained in:
parent
4ac5b19c37
commit
7179fc697d
@ -12,6 +12,10 @@ if (process.env.hasOwnProperty('MARKO_BROWSER_REFRESH')) {
|
||||
require('../browser-refresh').enable();
|
||||
}
|
||||
|
||||
if (process.env.MARKO_CLEAN === '' || process.env.MARKO_CLEAN === 'true') {
|
||||
markoCompiler.defaultOptions.checkUpToDate = false;
|
||||
}
|
||||
|
||||
function loadSource(templatePath, compiledSrc) {
|
||||
var templateModulePath = templatePath + '.js';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user