Answer the question
In order to leave comments, you need to log in
How to remove multiple gulp-clean files?
Good afternoon, please tell me if it is possible to delete several specific files from the directory.
For example, there is a task that deletes the layout, there are still unwanted files in the folder that need to be deleted, and creating a task for each file is somehow not very cool, return returns the absolute path with the file and clean is piped to this file. How to add a couple more files?
gulp.task('clean', function() {
return gulp.src('dist/layout.html', {read: false})
.pipe(clean());
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question