Understand the electron-vite-vue directory structure
mainThe project follows a specific directory structure to separate the Electron processes and the Vue renderer:
electron/main/index.ts: The entry point for the Electron Main process.electron/preload/index.ts: The entry point for Preload scripts.src/main.ts: The entry point for the Electron Renderer process (Vue application).index.html: The main HTML entry.vite.config.ts: Vite configuration file.package.json: Project dependencies and scripts.
+ ├─┬ electron
+ │ ├─┬ main
+ │ │ └── index.ts entry of Electron-Main
+ │ └─┬ preload
+ │ └── index.ts entry of Preload-Scripts
├─┬ src
│ └── main.ts entry of Electron-Renderer
├── index.html
├── package.json
└── vite.config.ts