You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recipe states, that users got to use del package to delete files. Packages I used previously for that, gulp-clean and gulp-rimraf are now both deprecated in favor of the metod described in the recipe.
First of all, the recipe needs to be updated, as del package now uses ESM, which exposes two exports - deleteSync or deleteAsync. Which one should be used?
Secondly, when I try to delete files using vinyl-paths method - I get an error (With both syna and async expoerts. A race condition? Is that a bug or desired behavior?.. gulp-clean and gulp-rimraf also give me this error now, at least on Windows).
The recipe states, that users got to use
del
package to delete files. Packages I used previously for that,gulp-clean
andgulp-rimraf
are now both deprecated in favor of the metod described in the recipe.First of all, the recipe needs to be updated, as
del
package now uses ESM, which exposes two exports -deleteSync
ordeleteAsync
. Which one should be used?Secondly, when I try to delete files using
vinyl-paths
method - I get an error (With both syna and async expoerts. A race condition? Is that a bug or desired behavior?..gulp-clean
andgulp-rimraf
also give me this error now, at least on Windows).(note that I want to ignore some of the files)
So, I did not find an easy way to delete files in a stream.
This way it works:
...but I need to use it via
gulp.src
(as I want to exclude files from deletion in a predictable way), and there is no clear way.The text was updated successfully, but these errors were encountered: