Comments (5)
@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.
from gulp-clean.
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.
from gulp-clean.
I solved it like this:
gulp.src(['js/*'], {read: false})
from gulp-clean.
The solution of @xlaywan doesn't work in my case.
from gulp-clean.
Repo is deprecated
from gulp-clean.
Related Issues (20)
- end event is not emited using gulp HOT 1
- How to clean and backup a directory recursively? HOT 2
- Event 'end' not fired HOT 8
- Fail to clean file tree in one pass HOT 2
- slow to delete folders on windows HOT 1
- Advocate use of read: false HOT 4
- Contant no such file or directory HOT 7
- Publish a patch release HOT 1
- what's the different between gulp-clean and del? HOT 2
- Why was this deprecated in favor of 'del'? HOT 1
- Not deleting anything on W10 HOT 1
- error thrown when trying to delete a file that is gone. HOT 4
- semver/semver.browser.js.gz: Error: Duplicate resources HOT 1
- gulp-util is deprecated HOT 1
- TypeScript definitions missing HOT 2
- How prevent specific folder/file from deletion HOT 1
- Subsequent tasks fail sometimes HOT 20
- Errors when symlink is present HOT 1
- unhandled 'error' event HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-clean.