Skip to content

Commit

Permalink
fix(starter): pass through env to started application
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Dec 7, 2016
1 parent c6ededf commit 834729f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/electron-forge-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ const main = async () => {
spawn(process.execPath, [path.resolve(dir, 'node_modules/.bin/electron'), '.'].concat(process.argv.slice(2)), {
cwd: dir,
stdio: 'inherit',
env: program.enableLogging ? {
env: Object.assign({}, process.env, program.enableLogging ? {
ELECTRON_ENABLE_LOGGING: true,
ELECTRON_ENABLE_STACK_DUMPING: true,
} : {},
} : {}),
});

startSpinner.succeed();
Expand Down

0 comments on commit 834729f

Please sign in to comment.