diff --git a/lib/compiler.js b/lib/compiler.js index 159c366a..75c3da0f 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -135,6 +135,9 @@ function buildEnvCommandLineParams(config, envData, $logger) { const args = []; envFlagNames.map(item => { let envValue = envData[item]; + if (typeof envValue === "undefined") { + return; + } if (typeof envValue === "boolean") { if (envValue) { args.push(`--env.${item}`);