Answer the question
In order to leave comments, you need to log in
Why does the 'Did you forget to signal async completion' error occur?
[09:26:53] The following tasks did not complete: less
[09:26:53] Did you forget to signal async completion?
const gulp = require('gulp');
const less1 = require('gulp-less');
function less() {
return gulp.src('./less/*.less')
.pipe(less1())
.pipe(gulp.dest('./css/'))
}
gulp.task('less', less1);
Answer the question
In order to leave comments, you need to log in
Your function is called less, and you call the less1 function in the task.
Here is the corrected code...
const
gulp = require('gulp'),
less1 = require('gulp-less');
function less() {
return gulp.src('./less/*.less')
.pipe(less1())
.pipe(gulp.dest('./css/'))
}
gulp.task('less', less);
function less() {...}) or connected less (
const less = require('gulpless')).
const
gulp = require('gulp'),
less = require('gulp-less');
gulp.task('less', () => {
return gulp.src('./less/*.less')
.pipe(less())
.pipe(gulp.dest('./css/')
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question