I use del package to delete folder:
gulp.task(\'clean\', function(){ return del(\'dist/**/*\', {force:true}); });
But if there are many sub
Imports:
const { src, dest, series, parallel } = require('gulp'); const del = require('del');
In one line:
function clean(cb) { del(['./dist/'], cb()); }
Or, In two lines:
function clean(cb) { del(['./dist/']); cb(); }
Finally:
exports.default = series(clean, parallel(process1, process2));