npm install --save-dev gulp-clean
const { src } = require('gulp'); const clean = require('gulp-clean'); function cleanDist() { return src('dist', {read: false}) .pipe(clean()); } exports.default = cleanDist;
function cleanDist() { return src('dist/**/*', {read: false}) .pipe(clean()); }