Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Commit

Permalink
fix: add a check for undefined environment values (#673)
Browse files Browse the repository at this point in the history
* add a check for undefined environment values
  • Loading branch information
vtrifonov authored Sep 27, 2018
1 parent d3d155d commit c81484f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit c81484f

Please sign in to comment.