gulp-useref icon indicating copy to clipboard operation
gulp-useref copied to clipboard

Can I use the alternate search path and searchPath at the same time?

Open AlexStacker opened this issue 8 years ago • 2 comments

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?

AlexStacker avatar Dec 26 '16 08:12 AlexStacker

Can you describe the role of alternate search path more clearly?

fn-xiaobo avatar May 16 '19 02:05 fn-xiaobo

It’s been a long time, and I forgot what I was doing at the time. I think it should be close.

AlexStacker avatar May 17 '19 02:05 AlexStacker