gulp-file-sync
gulp-file-sync copied to clipboard
ignore option does not seem to work
I'm unsure if this is a bug or just a limitation. It seems the ignore option is fairly picky about what you can pass to it. Currently, each file name must be declared specifically like ['index.html','main.css'] or regex must be used but '*.html' and '.html' will not work.
Working: ignore: [/.*.html/, 'main.css', 'css', 'js']
Not Working: ignore: ['.html', '*.html']
Glob syntax (e.g. *.html
) is not currently supported. You can either do full match or regular expressions.
See below for details.
https://github.com/kayo5994/gulp-file-sync/blob/master/index.js#L21-L33
I can confirm @rfoost.
Please fix it or update the examples on https://www.npmjs.com/package/gulp-file-sync
What would be regex for your application to exclude files with particular extension recursively?
I use ignore: [/^\.log$/i, /^\.xml$/i]
from your examples. This does not work.
Same here...
I use ignore: /^\.scss$/i
from examples. That didn't work either