Skip to content

Commit ed085db

Browse files
committed
Rebuild all UI on site.variables change
1 parent 4dd6d89 commit ed085db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/watch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ module.exports = function(callback) {
100100
---------------*/
101101

102102
// recompile on *.override , *.variable change
103-
isConfig = (file.path.indexOf('theme.config') !== -1);
103+
isConfig = (file.path.indexOf('theme.config') !== -1 || file.path.indexOf('site.variables') !== -1);
104104
isPackagedTheme = (file.path.indexOf(source.themes) !== -1);
105105
isSiteTheme = (file.path.indexOf(source.site) !== -1);
106106
isDefinition = (file.path.indexOf(source.definitions) !== -1);
107107

108108
if(isConfig) {
109-
console.info('Change detected in theme config');
109+
console.info('Rebuilding all UI');
110110
// impossible to tell which file was updated in theme.config, rebuild all
111111
gulp.start('build');
112112
return;

0 commit comments

Comments
 (0)