Using require when electron app is packaged in an asar
<p>In my main.js, I have:</p>

<pre><code>var mainFrm = require('./MainFrm');
</code></pre>

<p>This works fine except when the application is packaged as an asar file.  I get a 'Cannot find module' error.  </p>

<p>The documentation states to use the following:</p>

<pre><code>require('/path/to/example.asar/dir/module.js');
</code></pre>

<p>I tried that but got the same error.  Where does the path begin when using the above?  Does path start with electron.exe is?  Also, if I use require('/resources/app.asar/MainFrm.js') what path do I use for OS X apps since the Resources folder is in a different location?  What path should I use during development/debugging (i.e. not inside of an asar)</p>