title: Electron Forge & Webpack with multiple windows (Uncaugh expection with built package)
body: <p>I'm completely stuck on this, I've been browsing all over looking for a similar problem but I can't find anything anywhere.</p>
  <p>I have a electron application with 2 windows, built in typescript. they run perfectly in Dev environment. Once I run: npm run make. I got an error saying two chunks are
  Conflict: Multiple chunks emit assets to the same filename index.js (chunks 1 and 2)</p>
  <p>Which I then googled around and attempted to fix by putting the output section into my</p>
  <p>webpack.main.configuration</p>
  <pre><code>module.exports = {
    /**
     * This is the main entry point for your application, it's the first file
     * that runs in the main process.
     */
   // entry: './src/index.ts',
   entry: {
    main: './src/index.ts',
    path: './src/path.ts',
  },
   **output: {
         path: __dirname+ '/build',
         filename: '[name].js' 
     },**
    // Put your normal webpack config below here
    module: {
      rules: require('./webpack.rules'),
    },
    resolve: {
      extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.json']
    },
  };
  </code></pre>
  <p>I think my lack of understanding of webpack might be the problem here.
  The error I get says
  A javascript error occurred in the main process</p>
  <p>Uncaught excpetion:
  Error:Cannot Find Module 'path\resources\app.webpack\main'</p>
  <p>When I browse into the .webpack folder I find that the main folder doesn't exist but I instead have a &quot;renderer&quot; folder that contains two folders main_window and path</p>
  <p>Which is what I'm expecting based on my
  package.json electron forge plugin-webpack</p>
  <pre><code>  &quot;plugins&quot;: [
      [
        &quot;@electron-forge/plugin-webpack&quot;,
        {
          &quot;mainConfig&quot;: &quot;./webpack.main.config.js&quot;,
          &quot;renderer&quot;: {
            &quot;config&quot;: &quot;./webpack.renderer.config.js&quot;,
            &quot;entryPoints&quot;: [
              {
                &quot;html&quot;: &quot;./src/index.html&quot;,
                &quot;js&quot;: &quot;./src/renderer.ts&quot;,
                &quot;name&quot;: &quot;main_window&quot;
              },
              {
                &quot;html&quot;: &quot;./src/path.html&quot;,
                &quot;js&quot;: &quot;./src/path.ts&quot;,
                &quot;name&quot;: &quot;path&quot;
              }
  </code></pre>
  <p>What do I need to change to fix this ?
  Is this a webpack output issue?
  do I need to adjust my main process code to the new location to look in renderer instead of main ?
  Currently I use</p>
  <pre><code>declare const MAIN_WINDOW_WEBPACK_ENTRY: any;
  declare const PATH_WEBPACK_ENTRY: any;
  </code></pre>
  <p>in my main.ts file to handle paths of the separate windows which I'm told would work in live automatically.</p>
  <p><a href="https://i.stack.imgur.com/FjbaT.png" rel="nofollow noreferrer">Error .exe shows</a></p>
  <hr />