{"repo":"electron-vite/vite-plugin-electron","free":true,"listed":false,"github":"https://github.com/electron-vite/vite-plugin-electron","clone":"git clone https://github.com/electron-vite/vite-plugin-electron.git","description":":electron: Electron⚡️Vite core repo","language":"TypeScript","stars":911,"topics":["electron","vite","plugin"],"license":"MIT","category":"dev-tools","readme_excerpt":"vite-plugin-electron Electron 🔗 Vite English 简体中文 In short, vite-plugin-electron makes developing Electron apps as easy as normal Vite projects. [!note] This plugin supports both Vite 7 and Vite 8. Build config keys are adapted automatically, using rolldownOptions on Vite 8+ and rollupOptions on Vite (Main process) ](https://electron-vite.github.io/guide/features.html#hot-restart) - 🔄 Hot Reload (Preload scripts) - ⚡️ HMR (Renderer process) - 🌱 Fully compatible with Vite and Vite's ecosystem (Based on Vite) - 🔮 Full-featured JavaScript API, really easy to integrate with complex projects. - 🐣 Few APIs, easy to use Quick Setup 1. Add the following dependency to your project 2. Add vite-plugin-electron to the plugins section of vite.config.ts 3. Create the electron/main.ts file and type the following code 4. Add the main entry to package.json That's it! You can now use Electron in your Vite app ✨ How to work It just executes the electron . command in the Vite closeBundle() hook and then starts or restarts the Electron App. - 🚨 By default, the files in electron folder will be built into the dist-electron directory Flat API In most cases, the vite-plugin-electron/simple API is recommended. If you know very well how this plugin works or you want to use vite-plugin-electron API as a secondary encapsulation of low-level API, then the flat API is more suitable for you. It is also simple but more flexible. :) The difference compared to the simple API is that it does not identify ","default_branch":null,"files":null,"tree":[],"storefront":"/r/electron-vite","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/electron-vite/vite-plugin-electron/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}