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).
If my config have array values:
then the CONFIG created by
node-config-webpacklooks like: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 likeCONFIG.validNames.includes(name).