Browse Source

Move `processArguments` configuration to the right place

master
Sven Slootweg 5 years ago
parent
commit
0bd88e18cf
  1. 3
      src/index.js

3
src/index.js

@ -10,7 +10,6 @@ const getProjectRoot = require("./get-project-root");
module.exports = function(options = {}) {
let electronLogger = namedLog("electron");
let processArguments = [projectRoot];
let environmentVariables = xtend(process.env, {
NODE_ENV: "development"
@ -24,6 +23,8 @@ module.exports = function(options = {}) {
return getProjectRoot();
}, {evaluate: true});
let processArguments = [projectRoot];
if (options.arguments != null && Array.isArray(options.arguments)) {
processArguments = options.arguments.concat(processArguments);
}

Loading…
Cancel
Save