Questions tagged [gulp-default]

gulp-default is the default gulp task or entry-point that runs when gulp is initiated without a task name specified.

The gulp-default task is the default task in gulp which is usually considered the gulpfile's entry-point.

The gulp-default task is simply written with a name default followed by a list of other tasks that will run when gulp is initiated without a task name specified.

Example:

Gulp v3:

gulp.task('default', ['styles', 'scripts', 'images', 'watch']);

Gulp v4:

gulp.task('default', gulp.parallel('styles', 'scripts', 'images', 'watch'));

Links:

2 questions
2
votes
2 answers

Referencing two gulp tasks within a default

I have a gulp 'default' task where I want to clean a folder before gulp continues to build my minified CSS and JS. This 'clean' task needs to run only once per default task. But I am having issues trying to get default task to reference the real…
Energetic Pixels
  • 349
  • 3
  • 15
0
votes
0 answers

gulp watch task not running even though i am using gulp version4 syntax

i have a problem with gulp watch task , it's not giving any result when i run it , the syntax is correct for gulpv4 ,here is my gulpfile.js /* Variables */ var gulp = require("gulp"); var concat = require("gulp-concat"); var prefix =…