Please describe your issue:
When a Forge project using the Webpack template is packaged, the renderer file should be referenced as ../main_window/index.js, not /main_window/index.js.
Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using electron-forge init is a good starting point, if that is not the
source of your problem.
On Linux:
$ npx --no-install --ignore-existing create-electron-app --template=webpack webpack-test
โ Initializing Project Directory
โ Initializing Git Repository
โ Copying Starter Files
โ Initializing NPM Module
โ Installing NPM Dependencies
โ Locating custom template: "webpack"
โ Installing Template Dependencies
โ Setting up Forge configuration
โ Setting up webpack configuration
$ cd my-new-app
$ npm run package
โ Checking your system
โ Compiling Main Process Code
โ Compiling Renderer Template
โ Preparing to Package Application for arch: x64
โ Preparing native dependencies
โ Packaging Application
$ out/my-new-app-linux-x64/my-new-app

_Please note: this bug is confirmed. Any comment that says anything to the effect of "I also have this problem" will be minimized._
My fix in #1021 was incorrect.
I'll do a new PR.
Much appreciated!
The path for the index.js seems to be correct in the 6.0.0-beta.43 but some css I am importing in the renderer.js are not being loaded now.
import $ from 'jquery';
import '@progress/kendo-ui';
import '@progress/kendo-theme-bootstrap';
import './index.css';
console.log('๐ This message is being logged by "renderer.js", included via webpack');


The packaged app is looking at the renderer/main_window/ for these 2 css files, but they are actually located in the renderer/ folder.
Most helpful comment
The path for the index.js seems to be correct in the 6.0.0-beta.43 but some css I am importing in the
renderer.jsare not being loaded now.The packaged app is looking at the
renderer/main_window/for these 2 css files, but they are actually located in therenderer/folder.