From 03e141d0b67030e44fb5357d5388b21d5ca7ad3e Mon Sep 17 00:00:00 2001 From: hellcatz Date: Fri, 21 Apr 2017 19:25:10 -0700 Subject: [PATCH] Update website.js Compatibility update for node-watch 0.5 --- libs/website.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/website.js b/libs/website.js index a59e58b4..544cdd3b 100644 --- a/libs/website.js +++ b/libs/website.js @@ -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); } });