A
A
Anton Essential2017-01-10 13:28:15
JavaScript
Anton Essential, 2017-01-10 13:28:15

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

1 answer(s)
O
Oleg, 2017-01-10
@AntonEssential

clean and rimraf are deprecated, use del .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question