Here is a composed task I don\'t know how to replace it with task dependencies.
...
gulp.task(\'watch\', function () {
var server = function(){
gulp.run(\
To run a task before starting to watch, instead of using gulp.run() or gulp.start() just run the gulp command straight up.
So instead of:
var compress = function () {
return gulp.src('js/vendor/*.js')
.pipe(concat('vendor.js'))
.pipe(gulp.dest('./build/js/'));
};
Just do:
gulp.src('js/vendor/*.js')
.pipe(concat('vendor.js'))
.pipe(gulp.dest('./build/js/'));
Or you can wrap that latter code in a "normal" function and call it whenever you want.
-- Inspired by this answer from a similar thread.