S
S
Sergey2015-11-27 23:18:52
JavaScript
Sergey, 2015-11-27 23:18:52

How to watch the creation of a new gulp.watch file?

Worth gulp.watch per directory. When a new file is created, gulp does not see it. How can I fix it?

gulp.task('beats-watch', function(){
  gulp.watch('./beats/styles/**/*.scss', ['beats-sass']);
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Malko, 2015-11-28
@Sergamers

Use the chokidar or gulp-watch module .
Or you can upgrade to version 4 of gulp and use the built-in watch like you have now. Gulp 4 uses the chokidar module.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question