title: Electron/React application relative path to Json file not working in production
body: <p>I am developing an Electron/react application whose main job is to read from a Json file and write back the changes to the Json file.</p>
  <p>I have placed the json file inside the src folder. Everything is working in my development environment but the write back to json file is failing in the generated exe file.</p>
  <p>The saving to json file part is handled in the electron.js file which is placed under the public folder.
  I am accessing the json file like follow in the electron.js file-</p>
  <p>const jsonFilePath = path.join(__dirname, '../src/apis/data.json');</p>
  <p>Then I am using this path inside my main renderer process.</p>
  <p>My folder structure is as follows -</p>
  <p>MyApp<br>
   -Public<br>
      -electron.js<br>
      -index.html<br>
  -src<br>
     -apis<br>
       -data.json<br></p>
  <p>Also I am unable to debug the electron side code in the production. The react part I can see in the dev tool but how to see it for the electon.js file?</p>