Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 859 Bytes

webpack-template.md

File metadata and controls

24 lines (18 loc) · 859 Bytes
description
Create a new Electron app with Webpack

Webpack

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

{% tabs %} {% tab title="NPM" %}

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

{% endtab %}

{% tab title="Yarn" %}

yarn create electron-app my-new-app --template=webpack

{% endtab %} {% endtabs %}

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