I use the plugin "main-bower-files" gulp. There is a huge library that is huge ... I want to ignore it on my list called "fatjslib.js". My current regular expression filter is as follows:
var listOfBower = mainBowerFiles({filter: (/.*\.js$/i)});
This brings up "fatjslib.js", and when I print the above variable, I see:
"\\User\\kmichaels\\storage\\app\\bower_components\\fatjslib\FatJsLib\FatJsLib.js"
How can I specify a filter or change the regex or do something so that "listOfBower" can ignore the file "FatJsLib.js"? I donβt want to specify the whole path, if possible, if there is a way of a wildcard to ignore anything, regardless of the structure of the path using FatJsLib, this may be better, but I am open to suggestions. Is the solution flexible to add "AnotherBigLib.js" (should there be a second library under some path structure) to the list of regular expressions or ignore it?
source share