Electron Forge
  • Getting Started
  • Importing an Existing Project
  • CLI
  • Core Concepts
    • Why Electron Forge?
    • Build Lifecycle
  • Configuration
    • Configuration Overview
    • TypeScript Setup
    • Plugins
      • Webpack Plugin
      • Vite Plugin
      • Electronegativity Plugin
      • Auto Unpack Native Modules Plugin
      • Local Electron Plugin
      • Fuses Plugin
    • Makers
      • AppX
      • deb
      • DMG
      • Flatpak
      • pkg
      • RPM
      • Snapcraft
      • Squirrel.Windows
      • WiX MSI
      • ZIP
    • Publishers
      • Bitbucket
      • Electron Release Server
      • GitHub
      • Google Cloud Storage
      • Nucleus
      • S3
      • Snapcraft
    • Hooks
  • Built-in Templates
    • Webpack
    • Webpack + Typescript
    • Vite
    • Vite + TypeScript
  • Guides
    • Code Signing
      • Signing a Windows app
      • Signing a macOS app
    • Custom App Icons
    • Framework Integration
      • React
      • React with TypeScript
      • Vue 3
    • Developing with WSL
  • Advanced
    • Auto Update
    • Debugging
    • Extending Electron Forge
      • Writing Plugins
      • Writing Templates
      • Writing Makers
      • Writing Publishers
    • API Docs
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Built-in Templates

Webpack

Create a new Electron app with Webpack

PreviousHooksNextWebpack + Typescript

Last updated 5 months ago

Was this helpful?

To get you up and running as fast as possible with the bundler, we provide a template that makes use of the , plus some preset webpack configuration options. This is by far the quickest way to getting a working webpack setup with Electron.

npx create-electron-app@latest my-new-app --template=webpack

Once you've initialized the template, you'll need to run npm start in the generated directory. See the documentation for Electron Forge-specific configuration options.

webpack
@electron-forge/plugin-webpack module
Webpack Plugin