Skip to content

Problem with the array-typed values of config #4

@davidmz

Description

@davidmz

If my config have array values:

{
  "validNames": ["one", "two", "three"]
}

then the CONFIG created by node-config-webpack looks like:

{
  "validNames": {0: "one", 1: "two", 2: "three"}
}

This is ok while we use the separate items of array (like CONFIG.validNames[0]) but it prevents us from using array at whole, for example like CONFIG.validNames.includes(name).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions