okvic77/gulp-bower-assets

Move prefixed libraries into a different folder

Closed this issue · 1 comments

I really like the gulp-bower-assets plugin but is there an option to move libraries into different folder? I am using the prefix configuration but with this I only get prefixed directory names like prefix.jquery but what I want to have is, that jquery is placed into the directory prefix/jquery. Is this possible?

I just saw that I can pass a function as prefix value, so this helped me:

prefix: function(name, prefix) {
  return prefix + '/' + name;
}

Thanks for your great plugin!!