Open bharatribadiya opened 4 years ago
I tried to do the same. To exclude normalize-scss, for example. This solution is not convenient for two reasons: 1) exclude option works only with replaceDefaultExcludes: true and it leads to copy other default exceptions to the task. 2) Exclude options are not cover dependencies names. And there is no way to excude any dependency
As a quick fix, you can move the unnecessary item to devDependencies
.
gulp-npm-dist copy packages only from dependencies
section
We have used gulp-ignore
for this.
Would however prefer to be able to supply a list of excluded packages or a filter function to gulp-npm-dist
to filter by dependency instead of by Vinyl
items afterwards. Would be much faster to process.
I just want exclude a specific dependency and copy other dependencies.