title: In an electron js application load html template in an iframe after generating executable with electron-forge
body: <p>I have a simple electronjs application, which basically shows html content (an entire template with scripts, css, etc.) in an iframe (property src pointing to index.html), but I do it through electron dialog by selecting templates compressed in zip and using DecompressZip (decompress-zip, which is an npm dependency) I decompress it in a folder inside the project.
  And from there I show the different html contents in the iframe, in the src property I use an absolute path to the index.html of each content using __driname. Everything works well in development but when I already generated the executable (Use electrong-forge, command npm run make) and I run the program with the .exe the html content is not shown, everything else works fine, the template is decompressed perfectly, but at the moment of showing in the iframe is the problem and within the iframe the following appears:
  <a href="https://i.stack.imgur.com/9klAZ.png" rel="nofollow noreferrer">Error que se muestra en el iframe</a></p>
  <p>The path to index.html is fine and I know that the error is because the html content that I have loaded into the application has not been precompiled and that's obvious because I load the html at run time, in production mode.
  Question Is there any way to precompile at run time (in production)? o In some way ignore the directory where I host the html so that precompilation is not necessary and the content can be displayed? or what other solution could there be for this inconvenience?
  I will be very grateful, since I have invested many things and I do not resolve it yet.</p>
  <p>My json package is the following, the scripts and the electron-forge config:</p>
  <pre><code>&quot;scripts&quot;: {
      &quot;start&quot;: &quot;electron .&quot;,    
      &quot;forge-start&quot;: &quot;electron-forge start&quot;,
      &quot;package&quot;: &quot;electron-forge package&quot;,
      &quot;make&quot;: &quot;electron-forge make&quot;
    },
  &quot;config&quot;: {
      &quot;forge&quot;: {
        &quot;make_targets&quot;: {
          &quot;win32&quot;: [
            &quot;squirrel&quot;
          ],
          &quot;darwin&quot;: [
            &quot;zip&quot;
          ],
          &quot;linux&quot;: [
            &quot;deb&quot;
          ]
        },
        &quot;electronPackagerConfig&quot;: {
          &quot;packageManager&quot;: &quot;npm&quot;
        },
        &quot;electronWinstallerConfig&quot;: {
          &quot;name&quot;: &quot;Estanteria&quot;
        },
        &quot;electronInstallerDebian&quot;: {},
        &quot;electronInstallerRedhat&quot;: {},
        &quot;github_repository&quot;: {
          &quot;owner&quot;: &quot;&quot;,
          &quot;name&quot;: &quot;&quot;
        },
        &quot;windowsStoreConfig&quot;: {
          &quot;packageName&quot;: &quot;&quot;,
          &quot;name&quot;: &quot;Estanteria&quot;
        }
      }
    }
  </code></pre>
  <p>And the structure of the project (being the resources folder where the html templates are hosted):
  <a href="https://i.stack.imgur.com/CNYBI.png" rel="nofollow noreferrer">Estructura del proyecto</a></p>
  <p>It should be mentioned that in the error image that is shown, inside the resources folder is what is decompressed: resources/7/34f927/index.html and the index that is read within 34f927 for this example.</p>