U
U
Ucorp2016-08-26 21:36:52
gulp.js
Ucorp, 2016-08-26 21:36:52

How to make gulp watch for newly created files?

There is such a watcher.
gulp.watch('./src/styles/**/*.scss', ['sass']);
Here I run it and everything is fine, but if you create some new file in this folder, the watcher does not work. If you restart the task, then the rules.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2016-08-26
@Ucorp

Install gulp-watch
npm i gulp-watch --save-dev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question