Merge pull request #119 from hellcatz/patch-5

compatibility update node-watch 0.5.x
This commit is contained in:
Procrastinator 2017-04-22 15:47:13 -04:00 committed by GitHub
commit ed06afc205
1 changed files with 4 additions and 4 deletions

View File

@ -95,13 +95,13 @@ module.exports = function(logger){
};
//If an html file was changed reload it
watch('website', function(filename){
// if an html file was changed reload it
/* requires node-watch 0.5.0 or newer */
watch(['./website', './website/pages'], function(evt, filename){
var basename = path.basename(filename);
if (basename in pageFiles){
console.log(filename);
readPageFiles([basename]);
logger.debug(logSystem, 'Server', 'Reloaded file ' + basename);
logger.special(logSystem, 'Server', 'Reloaded file ' + basename);
}
});