Browse Source

Rebuild all UI on site.variables change

pull/2016/head 1.11.5
jlukic 10 years ago
parent
commit
ed085dbc11
1 changed files with 2 additions and 2 deletions
  1. 4
      tasks/watch.js

4
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;

Loading…
Cancel
Save