TypeScript + Webpack
Create a new Electron app with TypeScript and Webpack.
To get you up and running as fast as possible with TypeScript and Webpack, we provide a template that makes use of the @electron-forge/plugin-webpack module with sane TypeScript configuration defaults.
NPM
Yarn
1
npx create-electron-app my-new-app --template=typescript-webpack
Copied!
1
yarn create electron-app my-new-app --template=typescript-webpack
Copied!
There have been reports that using the Git Bash command line on Windows specifically with this template will prevent the Electron app from rendering (packaged apps are fine). We recommend that on Windows, you use CMD.exe, PowerShell, or WSL2.
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.
Last modified 4mo ago
Copy link