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?
我会说这样的事情应该有效:
gulp.watch(['css/**/*', '!css/**/.*'], ['styles']);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.