This task work ok. I use path ".wwwroot/css/site.min.css"
var gulp = require("gulp");
const fs = require('fs').promises;
gulp.task('clean', async function (done) {
try {
await fs.rm(".wwwroot/js/temp/site.min.js", { recursive: true, force: true });
done();
} catch (error) {
done(error);
}
});
But if I use path '.wwwroot/js/temp/'. I get error: The following tasks did not complete: clean Did you forget to signal async completion?
"npm": "10.8.2", "node": "20.17.0"
The problem appeared after I decided to update to rimraf 2.2.8. It was suggested to use the built-in fs library