To get you up and running as fast as possible we provide a Webpack template that makes use of the
@electron-forge/plugin-webpack module. This is by far the quickest way to getting a working webpack setup with Electron.
npx create-electron-app my-new-app --template=webpack
yarn create electron-app my-new-app --template=webpack
Once you've initialized the template it's as easy as running
npm start in the generated directory. For more information on how the Webpack Plugin works and how you configure it please check out the Webpack Plugin documentation.