Answer the question
In order to leave comments, you need to log in
Gulp fails with error Task never defined: default?
var gulp = require('gulp'),
sass = require('gulp-sass')(require('sass')),
watch = require('gulp-watch');
gulp.task('sass', function() {
return gulp.src('./scss/**/*.scss')
.pipe(sass({outputStyle: 'compressed'}))
.pipe(gulp.dest('./css'));
});
gulp.task('watch', function() {
gulp.watch('./scss/**/*.scss', gulp.series('sass'));
});
Answer the question
In order to leave comments, you need to log in
and to translate the text of an error in general in any way?
They write in black and white - the task is not defined.
Where in your file gulp.task('default' , ....)
?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question