Search code snippets, questions, articles...

Default task in Gulp

var gulp = require('gulp');

gulp.task('task1', function() { /** TASK 1 Process */ });

gulp.task('task2', function() { /** TASK 1 Process */ });

gulp.task('default', gulp.series(
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

You can define the default task in gulp by creating a task named as 'default' and pass gulp.series or gulp.parallel to it to run multiple tasks. The default tasks can be run using the gulp command in the terminal.

Was this helpful?