I am trying to match an entire folder structure of CSS files with the exception of a certain sub-folder and its included CSS files.
Consider this structure:
styles
css
thing1
include.css
include2.css
thing2
toBeExcluded
exclude.css
exclude2.css
In this example, I want to include the files include.css
and include2.css
but exclude the files inside the thing2
sub-folder.
Here is the pattern I am using gulp.src(["!./styles/css/thing2/", "!./styles/css/thing2/**/*.css", "./styles/css/**/*.css"])
However, try as I might, I don't seem able to negate the thing2
folder and it's files. Any idea what I'm doing wrong?