Comments (7)
Could you try to add current directory to glob option? Like this: glob: [config.src + '/*.less', config.src + '**/*.less']
.
from gulp-watch.
Sadly didn't work. Just resulted in any new directories in the src directory triggering the watch. But it has no effect on files created in an existing subdirectory.
from gulp-watch.
This issue belongs to gaze
unfortunately - shama/gaze#103
from gulp-watch.
@thebuilder [email protected] now uses chokidar, that fixes this issue.
from gulp-watch.
Awesome!
Fra: Vsevolod Strukchinskymailto:[email protected]
Sendt: ý21-ý01-ý2015 19:23
Til: floatdrop/gulp-watchmailto:[email protected]
Cc: Daniel Schmidtmailto:[email protected]
Emne: Re: [gulp-watch] New files in empty or new directory are not watched (#56)
@thebuilderhttps://github.com/thebuilder [email protected] now uses chokidar, that fixes this issue.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/56#issuecomment-70891967.
from gulp-watch.
Still have the issue with empty folder.
Here is my code :
gulp.task('clean:images', function () {
return del.sync([
config.img.out + '/**'
]);
});
gulp.task('bundle:images', ['clean:images'], function () {
return gulp.src('assets/img/**/*.*')
.pipe(gulp.dest('dist/img'));
});
gulp.task('watch:images', ['bundle:images'], function () {
return gulp.watch('assets/img/**/*.*', ['bundle:images']);
});
Working fine as soon there is a file in assets/img
.
from gulp-watch.
@OlivierCuyp Are you actually using the gulp-watch
package? Looks like you are using gulp's built-in gulp.watch
method.
from gulp-watch.
Related Issues (20)
- Watched unexpected filepath
- Watched unexpected filepath
- Watched unexpected filepath
- Watched unexpected filepath
- subfolders no longer updating the main style.scss file
- Watched unexpected filepath
- How to deal with changed files? HOT 2
- watch is not working correctly
- chokidar version 3 HOT 4
- Watched unexpected filepath
- Watched unexpected filepath HOT 1
- please publish the latest version to npm
- chokidar version is too low
- Watched unexpected filepath
- Watched unexpected filepath HOT 1
- Watched unexpected filepath
- Watched unexpected filepath
- Watched unexpected filepath
- Watched unexpected filepath HOT 1
- Security Issue with Gulpwatch, fsevents and Request for Chokidar Version 3 and Fsevents Version 2 Installation HOT 1
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-watch.