From ed085dbc11d7116be2acbb00953dd6b5867532c1 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 23 Mar 2015 11:55:37 -0400 Subject: [PATCH] Rebuild all UI on site.variables change --- tasks/watch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/watch.js b/tasks/watch.js index 098cdc161..4db935275 100644 --- a/tasks/watch.js +++ b/tasks/watch.js @@ -100,13 +100,13 @@ module.exports = function(callback) { ---------------*/ // recompile on *.override , *.variable change - isConfig = (file.path.indexOf('theme.config') !== -1); + isConfig = (file.path.indexOf('theme.config') !== -1 || file.path.indexOf('site.variables') !== -1); isPackagedTheme = (file.path.indexOf(source.themes) !== -1); isSiteTheme = (file.path.indexOf(source.site) !== -1); isDefinition = (file.path.indexOf(source.definitions) !== -1); if(isConfig) { - console.info('Change detected in theme config'); + console.info('Rebuilding all UI'); // impossible to tell which file was updated in theme.config, rebuild all gulp.start('build'); return;