dshemendiuk / gulp-npm-dist

Copy minified (dist) files of modules listed in package.json "dependencies" field to your build path
26 stars 3 forks source link

How to exclude a specific dependencies ? #13

Open bharatribadiya opened 4 years ago

bharatribadiya commented 4 years ago

I just want exclude a specific dependency and copy other dependencies.

yfxwardy commented 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

dshemendiuk commented 4 years ago

As a quick fix, you can move the unnecessary item to devDependencies. gulp-npm-dist copy packages only from dependencies section

beruic commented 4 years ago

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.