optional
fun NpmDependencies.optional(name: String, version: String, action: Action<NpmDependency> = Action { }): NamedDomainObjectProvider<NpmDependency>
Registers an optional npm dependency for the package
Return
registered dependency
Parameters
name
of the dependency
version
of the dependency
action
to apply