//electron entry-point

const REACT_DEVELOPER_TOOLS = require('electron-devtools-installer').REACT_DEVELOPER_TOOLS;
var installExtension = require('electron-devtools-installer').default;
var app = require('electron').app;
var BrowserWindow = require('electron').BrowserWindow;
var path = require( "path" );

if (process.env.NODE_ENV === 'development') {
  require('electron-debug')(); // eslint-disable-line global-require
}

app.on('ready',function() {

installExtension(REACT_DEVELOPER_TOOLS)
  .then((name) => console.log(`Added Extension:  ${name}`))
  .catch((err) => console.log('An error occurred: ', err));

  var mainWindow = new BrowserWindow({
    width: 1200,
    height: 600
  });
  mainWindow.loadURL('file://' + __dirname + '/src/index-electron.html');

  mainWindow.webContents.on('did-finish-load', () => {
    mainWindow.show();
    mainWindow.focus();
  });

  mainWindow.on('closed', () => {
    mainWindow = null;
  });

  if (process.env.NODE_ENV === 'development') {
    mainWindow.openDevTools();
  }

});

@@ -19,172 +19,8 @@
 oint
-%0A%0Aconst REACT_DEVELOPER_TOOLS = require('electron-devtools-installer').REACT_DEVELOPER_TOOLS;%0Avar installExtension = require('electron-devtools-installer').default;
 %0Avar
@@ -284,16 +284,230 @@
 on() %7B%0A%0A
+if(process.env.NODE_ENV === 'development') %7B%0A  const REACT_DEVELOPER_TOOLS = require('electron-devtools-installer').REACT_DEVELOPER_TOOLS;%0A  var installExtension = require('electron-devtools-installer').default;%0A  
 installE
@@ -657,16 +657,18 @@
 , err));
+%0A%7D
 %0A%0A  var 

Load react-devtools in dev env only