/Electron-Vite-React-JS

Electron + Vite + React template

Primary LanguageJavaScriptMIT LicenseMIT

Electron-Vite-React-JS

Electron + Vite + React template.

Overview

  1. Ready out of the box
  2. Based on vite-plugin-electron and the official template-react
  3. Supports Node.js API in the renderer process
  4. Supports React devTools

Install

git clone https://github.com/justid/Electron-Vite-React-JS.git
cd Electron-Vite-React-JS
yarn install

Develop

yarn dev

Build

yarn build

Directory structure

├── electron                       Electron-related code
│   ├── main                       Main-process source code
│   ├── preload                    Preload-scripts source code
│   └── electron-builder.json5     Build config file
│
├── release                        Generated after production build, contains executables
│   └── {version}
│       └── {os}-unpacked          Contains unpacked application executable
│
├── public                         Static assets
└── src                            Renderer source code, your React application