Closed vpArth closed 8 years ago
@vpArth, I had the same problem solved by specifying an array of globs: first setting the one for files and then the universal one. Like this:
gulp.src(['js/**/*.js', 'js/**'], {read: false});
That way, the files seem to be selected prior to folders.
It looks like an issue of gulp itself or even glob-stream
, not the plugin.
Thanks, @bonfish. I solve it almost same way :)
But I think it's not so hard to add some silent
flag, which will just ignore absent files, while clean.
I solved it like this:
gulp.src(['js/*'], {read: false})
The solution of @xlaywan doesn't work in my case.
Repo is deprecated
Hi guys.
Here is simple clean task:
My issue is hierarchy, for example
in this case,
modules
removes first, and whenclean
try to remove1.js
,ENOENT
throwed.Is there a way to handle
**
globs in correct order(files, then dirs)? Or is there other glob to remove all in folder?Thanks.