I have the following task
gulp.task('sass-build', ['clean-build'], function () {
// do stuff
});
which obviously requires clean-build
to be finished before starting. However, I would also like to use this task with gulp.watch
without the clean-build
dependency.
I'm aware that you could solve this with a helper task like suggested in Skipping Tasks Listed as Dependencies in Gulp, but this would require using gulp.run
(which is deprecated) or gulp.start
(which isn't even documented because it's considered bad practise).
What would be a better way of doing this? Or is the only way to use gulp.run
or gulp.start
?