Skip to content

Commit

Permalink
Rebuild all UI on site.variables change
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Mar 23, 2015
1 parent 4dd6d89 commit ed085db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ed085db

Please sign in to comment.