title: Electron loads index.html but not the rest of the bundle files
body: <p>We have an electron app and want to load the renderer bundle using <code>loadUrl()</code>.</p>
  
  <pre class="lang-js prettyprint-override"><code>win=new BrowserWindow({ /* ... */ })
  win.loadURL(`file://${path.join(__dirname, '../../render/build/index.html')}`);
  </code></pre>
  
  <p>Inside the html file, we load the React Bundle</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;script type="text/javascript" src="/js/app-my-hash.bundle.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>However, as expected, the file is not found, since, I guess, I need to set the root of the project somehow. I get this error</p>
  
  <pre><code>Failed to load resource: net::ERR_FILE_NOT_FOUND
  </code></pre>
  
  <p>What setting am I missing on the electron side (or webpack side) to get this working?</p>