Open scotthovestadt opened 9 years ago
For anyone that finds this looking for a solution:
require('load-plugins')('gulp-*', { strip: ['gulp'] });
This strips only the gulp prefix.
My recommendation is to make the default behavior to strip the prefix that was passed in and allow the user to strip extra things when he feels like it.
@jonschlinkert Maybe we need to strip only first part?
Have you tried passing a custom strip
function on the options? We probably need more unit tests for this
@jonschlinkert Seems like it deeply extended. I will replace it with object-assign.
@jonschlinkert However extend-shallow is not deep..
Seems like it deeply extended. I will replace it with object-assign.
Are you saying that strip
is being overwritten? seems like options should only be one level deep in this case, so there is no reason to deep merge. if there is, object-assign is identical in result to extend-shallow. I'd rather use mixin-deep
.
even better, we should fix whatever is preventing the options from extending properly.
edit: I think i understood what you were saying in reverse. so I think we're in agreement, but there is still no reason to use object-assign. extend-shallow does the same thing but faster.
@jonschlinkert I just forgot that extend-shallow is not deep extend.
Any word on this issue?
@scotthovestadt
plugins('gulp-*', {
strip: 'gulp'
});
works fine
@jonschlinkert Maybe we shouldn't use registry and should leave strip to user?
yeah I'm refactoring atm. I think that's a good idea
Please support gulp-postcss.