Browse Source

Fix rebuild on site.variables debug

pull/2034/head
jlukic 10 years ago
parent
commit
8ce8f11496
2 changed files with 4 additions and 3 deletions
  1. 5
      tasks/docs/serve.js
  2. 2
      tasks/watch.js

5
tasks/docs/serve.js

@ -117,8 +117,9 @@ module.exports = function () {
isDefinition = (file.path.indexOf(source.definitions) !== -1);
if(isConfig) {
console.info('Change detected in theme config, rebuild docs with `build-docs`');
// impossible to tell which file was updated in theme.config
// console.info('Rebuilding all files');
// cant rebuild paths are wrong
// gulp.start('build-docs');
return;
}
else if(isPackagedTheme) {

2
tasks/watch.js

@ -106,7 +106,7 @@ module.exports = function(callback) {
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