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.
npx create-electron-app my-new-app --template=typescript-webpack
yarn create electron-app my-new-app --template=typescript-webpack
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.