Yanick Rochon
Yanick Rochon

Reputation: 53546

Ignoring hidden files with gulp-watch

I am watching an entire folder for file modifications, I want to ignore some of the files. For example, I want to watch all files, but ignore those that start with a period (.). How do I do that?

Upvotes: 1

Views: 337

Answers (1)

luboskrnac
luboskrnac

Reputation: 24561

I would say something like this should work:

gulp.watch(['css/**/*', '!css/**/.*'], ['styles']);

Upvotes: 3

Related Questions