How do I filter out an entire folder from the main-bower-files?
For example, if I'm doing this mainBowerFiles('**/jquery-validation/**')
, it returns only the files from the jquery-validation
folder, but I need the opposite.
I've tried mainBowerFiles('!**/jquery-validation/**')
, however it seems like !
sign doesn't work in this case. What's wrong with my pattern?
It is possible to ignore Bower Packages getting picked up by mainBowerFiles
with adding overrides: PACKAGE_NAME
to bower.json
{
"name": "My Project",
"description": "",
...
...
...
"dependencies": {
...
...
...
},
"overrides": {
"PACKAGE_NAME": {
"ignore": true
}
}
}