Closed scmx closed 9 years ago
I had same problem. Don't know if this is the best solution, but since (in my case) the "clean" task should be done first, and in a synchronous manner, I just used rimraf.sync, so your code would be:
rimraf.sync('./.tmp/css');
Also note, that because its synchronous, there is no need for a callback.
I thought this deprecation would be an easy fix. gulp-rimraf tells us to:
So I tried:
However I get an error
I guest I'm just doing it wrong.
Do you know how it should be done? Or should we open an issue at rimraf?
Might be related with https://github.com/gruntjs/grunt-contrib-clean/issues/34 or https://github.com/isaacs/rimraf/issues/25#issuecomment-28072488