title: Electron run by Capacitor in Ionic 5: console logging and live reload not working
body: <p>I've used Electron standalone before, and <code>console.log()</code> commands in <code>main.js</code> worked just fine (output to IDE console) and the <code>electron-reload</code> module also worked fine when content changes were detected in the Electron root folder.</p>
  
  <p>I've now started a new Ionic 5 project, and added Electron to the project via Capacitor. Capacitor makes a few necessary changes to Electron (e.g. renaming main.js to index.js etc), I've now also have to start electron via capacitor <code>npx cap open electron</code>. </p>
  
  <p>In doing so, console.log() commands in index.js are now NOT being output to the IDE console, errors are not being output to console, and the electron-reload module now serves a blank page when changes are detected… the only console output that I get is:</p>
  
  <pre><code>$ npx cap open electron
  [info] Opening Electron project at ...
  </code></pre>
  
  <p>Is this a capacitor limitation or what configurations must be done to make this work ?</p>
  
  <pre><code>@ionic/cli@6.10.0
  @capacitor/core@2.2.0
  electron@8.3.1
  </code></pre>
  
  <p>also updated electron to latest 9.0.4 - same result.</p>
  
  <p>here are steps to reproduce this:</p>
  
  <pre><code># install ionic CLI
  $ npm install -g @ionic/cli
  
  # create project w/ capacitor
  $ ionic start &lt;project name&gt; blank --type=angular --capacitor
  
  # create initial build, needed by cap for electron 
  $ cd &lt;ionic_project_folder&gt;
  $ ionic build
  
  # add electron via cap
  $ npx cap add electron
  
  # run electron
  $ npx cap open electron
  </code></pre>
  
  <p>if you enter console.log messages in electron’s index.js, none of them will be logged…</p>