Advanced npm Virtual Repository Configuration

JFrog Artifactory Documentation

ft:sourceType
Paligo
npm Virtual Repository Advanced Config.jpg

The fields under External Dependency Rewrite are connected to automatically rewriting external dependencies for npm packages that require them.

Field

Description

Enable Dependency Rewrite

When selected, external dependencies are rewritten.

Remote Repository For Cache

The remote repository aggregated by this virtual repository in which the external dependency will be cached.

Patterns Allow List

An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.

For example, if you wish to limit external dependencies to only be downloaded fromgithub.com, you should add**github.com**(and remove the default**expression).