Browse Source

Fix gulp watch not erroring out with legitimate errors

pull/2034/head
jlukic 10 years ago
parent
commit
8102cff184
2 changed files with 5 additions and 1 deletions
  1. 4
      tasks/config/project/tasks.js
  2. 2
      tasks/watch.js

4
tasks/config/project/tasks.js

@ -83,6 +83,10 @@ module.exports = {
if(error.filename.match(/theme.less/)) {
console.error('Looks like your theme.config is out of date. You will need to add new elements from theme.config.example');
}
else {
console.log(error);
this.emit('end');
}
}
}
},

2
tasks/watch.js

@ -136,6 +136,7 @@ module.exports = function(callback) {
stream = gulp.src(lessPath)
.pipe(plumber(settings.plumber.less))
.pipe(less(settings.less))
.pipe(print(log.created))
.pipe(replace(comments.variables.in, comments.variables.out))
.pipe(replace(comments.license.in, comments.license.out))
.pipe(replace(comments.large.in, comments.large.out))
@ -170,7 +171,6 @@ module.exports = function(callback) {
gulp.start('package compressed css');
})
;
}
else {
console.log('Cannot find UI definition at path', lessPath);

Loading…
Cancel
Save