gulp-useref
gulp-useref copied to clipboard
Can I use the alternate search path and searchPath at the same time?
Hi, @jonkemp
I want to be able to find the path use alternate search path first and and the option searchPath is not undefined will to be used in next!
I change my local modules getPattern.js code:
if (files[destPath].searchPaths && searchPath) {
if(searchPath.startsWith('{')){
searchPaths = path.resolve(cwd, searchPath.replace('{', '{' + files[destPath].searchPaths+','));
}else{
searchPaths = path.resolve(cwd, '{'+ files[destPath].searchPaths + ',' + searchPath +'}');
}
}else if (files[destPath].searchPaths || searchPath) {
searchPaths = path.resolve(cwd, files[destPath].searchPaths || searchPath);
}
It work fine for me.would you like to add the feature to the next version?
Can you describe the role of alternate search path more clearly?
It’s been a long time, and I forgot what I was doing at the time. I think it should be close.