mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Adding detection for process.env.MARKO_HOT_RELOAD with assumeUpToDate configuration variable. If files are hot reloaded, we should never assume that they are up to date.
Fixes issue #319
This commit is contained in:
parent
fd318a8621
commit
c76ffa2382
@ -21,8 +21,8 @@ module.exports = {
|
||||
/**
|
||||
* If true, then the compiled template on disk will assumed to be up-to-date if it exists.
|
||||
*/
|
||||
assumeUpToDate: process.env.MARKO_CLEAN != null || NODE_ENV == null ? false : (NODE_ENV !== 'development' && NODE_ENV !== 'dev'),
|
||||
|
||||
assumeUpToDate: process.env.MARKO_CLEAN != null || process.env.hasOwnProperty('MARKO_HOT_RELOAD') ? false : ( NODE_ENV == null ? false : (NODE_ENV !== 'development' && NODE_ENV !== 'dev')),
|
||||
|
||||
/**
|
||||
* If true, whitespace will be preserved in templates. Defaults to false.
|
||||
* @type {Boolean}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user