I have a gulp script that watches for code changes in all javascript files
. It looks like this:
gulp.watch(['./**/*.jsx', './**/*.js'], ['build:react']);
So, it watches for all .js
and .jsx
files from root directory, but I want to ignore node_modules
directory.
How can I do that ?