Giter Site home page Giter Site logo

Comments (7)

floatdrop avatar floatdrop commented on August 17, 2024

Could you try to add current directory to glob option? Like this: glob: [config.src + '/*.less', config.src + '**/*.less'].

from gulp-watch.

thebuilder avatar thebuilder commented on August 17, 2024

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.

floatdrop avatar floatdrop commented on August 17, 2024

This issue belongs to gaze unfortunately - shama/gaze#103

from gulp-watch.

floatdrop avatar floatdrop commented on August 17, 2024

@thebuilder [email protected] now uses chokidar, that fixes this issue.

from gulp-watch.

thebuilder avatar thebuilder commented on August 17, 2024

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.

OlivierCuyp avatar OlivierCuyp commented on August 17, 2024

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.

UltCombo avatar UltCombo commented on August 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.