{"_id":"@antdv-next/electron-vite","_rev":"2-35819e59b4fb81297ec99a1b7230f1d6","name":"@antdv-next/electron-vite","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@antdv-next/electron-vite","version":"0.1.0","keywords":["electron","vite","cli","plugin"],"author":{"name":"Alex Wei","email":"https://github.com/alex8088"},"license":"MIT","_id":"@antdv-next/electron-vite@0.1.0","maintainers":[{"name":"aibayanyu","email":"aibayanyu@qq.com"},{"name":"ffgenius","email":"fuwb0407@gmail.com"},{"name":"cc-heart","email":"ccheartszzz@gmail.com"},{"name":"selicens","email":"selicens@foxmail.com"},{"name":"shiqkuangsan","email":"shiqkuangsan@gmail.com"}],"homepage":"https://electron-vite.org","bugs":{"url":"https://github.com/antdv-next/electron-vite/issues"},"bin":{"electron-vite":"bin/electron-vite.js"},"dist":{"shasum":"0c3fb43a271e55e855e56706b9257707369d3970","tarball":"https://registry.npmjs.org/@antdv-next/electron-vite/-/electron-vite-0.1.0.tgz","fileCount":15,"integrity":"sha512-Ug7G3v8qia5S+Z7XVYO1TWjo9HTa9YguGG2znx02F4ZQE1+qavoimVPsmtAHd4pRV1IC/U6KllPTS9yxRqQS3A==","signatures":[{"sig":"MEQCIE1NcqvlOxi3HHLQJjiSY6P+lKpNNJ/dH3kLSzsZC0m7AiApuSSqKZalAjTIpFCMxRmiZ05CjCoHXMA/HDAzmH9h2Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":91137},"main":"./dist/index.js","type":"module","_from":"file:antdv-next-electron-vite-0.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":"^20.19.0 || >=22.12.0"},"exports":{".":"./dist/index.js","./node":{"types":"./node.d.ts"},"./package.json":"./package.json"},"scripts":{"lint":"eslint --cache .","test":"vitest run","build":"pnpm run lint && pnpm run test && tsdown","format":"prettier --write .","typecheck":"tsc --noEmit","test:watch":"vitest","verify:bytecode":"node scripts/verifyBytecode.mjs"},"_npmUser":{"name":"aibayanyu","email":"aibayanyu@qq.com"},"_resolved":"/private/var/folders/d0/4mfvz1dx61gfhzltb92vm2jh0000gn/T/8b47c4bc0859bf57d62caa1974f9db50/antdv-next-electron-vite-0.1.0.tgz","_integrity":"sha512-Ug7G3v8qia5S+Z7XVYO1TWjo9HTa9YguGG2znx02F4ZQE1+qavoimVPsmtAHd4pRV1IC/U6KllPTS9yxRqQS3A==","repository":{"url":"git+https://github.com/antdv-next/electron-vite.git","type":"git"},"_npmVersion":"10.9.3","description":"Electron build tooling based on Vite","directories":{},"lint-staged":{"*.js":["prettier --write"],"*.ts?(x)":["eslint","prettier --parser=typescript --write"]},"_nodeVersion":"22.18.0","dependencies":{"cac":"^7.0.0","picocolors":"^1.1.1","magic-string":"^0.30.21"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.0.3","eslint":"^10.1.0","tsdown":"^0.22.13","vitest":"^4.1.10","globals":"^17.4.0","prettier":"^3.8.1","@eslint/js":"^10.0.1","typescript":"^5.9.3","@types/node":"^22.19.15","lint-staged":"^16.4.0","simple-git-hooks":"^2.13.1","typescript-eslint":"^8.57.2","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.5"},"peerDependencies":{"vite":"^8.0.0"},"simple-git-hooks":{"commit-msg":"node scripts/verifyCommit.js $1","pre-commit":"npx lint-staged"},"_npmOperationalInternal":{"tmp":"tmp/electron-vite_0.1.0_1784866195492_0.46225221956998985","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-07-24T04:09:55.350Z","modified":"2026-08-18T03:15:04.356Z","0.1.0":"2026-07-24T04:09:55.632Z"},"bugs":{"url":"https://github.com/antdv-next/electron-vite/issues"},"author":{"name":"Alex Wei","email":"https://github.com/alex8088"},"license":"MIT","homepage":"https://electron-vite.org","keywords":["electron","vite","cli","plugin"],"repository":{"url":"git+https://github.com/antdv-next/electron-vite.git","type":"git"},"description":"Electron build tooling based on Vite","maintainers":[{"email":"aibayanyu@qq.com","name":"aibayanyu"},{"email":"fuwb0407@gmail.com","name":"ffgenius"},{"email":"ccheartszzz@gmail.com","name":"cc-heart"},{"email":"selicens@foxmail.com","name":"selicens"},{"email":"shiqkuangsan@gmail.com","name":"shiqkuangsan"},{"email":"olddrivero.king@qq.com","name":"lonewolfyx"}],"readme":"<p align=\"center\">\n  <img src=\"https://alex8088.github.io/assets/electron-vite.svg\" width=\"150px\" height=\"150px\">\n</p>\n\n<div align=\"center\">\n  <h1>electron-vite</h1>\n</div>\n<p align=\"center\">Next generation Electron build tooling based on Vite</p>\n\n<p align=\"center\">\n<img src=\"https://img.shields.io/npm/v/electron-vite?color=6988e6&label=version\">\n<img src=\"https://img.shields.io/github/license/alex8088/electron-vite?color=blue\" alt=\"license\" />\n</p>\n\n<p align=\"center\">\n<a href=\"https://electron-vite.org\">Documentation</a> |\n<a href=\"https://electron-vite.org/guide\">Getting Started</a> |\n<a href=\"https://github.com/alex8088/quick-start/tree/master/packages/create-electron\">create-electron</a>\n</p>\n\n<p align=\"center\">\n<a href=\"https://cn.electron-vite.org\">中文文档</a>\n</p>\n\n<br />\n<br />\n\n## Features\n\n- ⚡️ [Vite](https://vitejs.dev) powered and use the same way.\n- 🛠 Pre-configure with sensible defaults optimized for Electron.\n- 💡 Optimize asset handling for Electron main process.\n- 🚀 Fast HMR & hot reloading.\n- 🔥 Isolated build for multi-entry application development.\n- ✨ Simplify multi-threading development.\n- 🔒 Compile code to v8 bytecode to protect source code.\n- 🔌 Easy to debug in IDEs such as VSCode or WebStorm.\n- 📦 Out-of-the-box support for TypeScript, Vue, React, Svelte, SolidJS and more.\n\n## Usage\n\n### Install\n\n```sh\nnpm i @antdv-next/electron-vite -D\n```\n\n### Development & Build\n\nIn a project where `@antdv-next/electron-vite` is installed, you can use `electron-vite` binary directly with `npx electron-vite` or add the npm scripts to your `package.json` file like this:\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"electron-vite preview\",\n    \"dev\": \"electron-vite dev\",\n    \"prebuild\": \"electron-vite build\"\n  }\n}\n```\n\n### Configuration\n\nWhen running `electron-vite` from the command line, electron-vite will automatically try to resolve a config file named `electron.vite.config.js` inside project root. The most basic config file looks like this:\n\n```js\n// electron.vite.config.js\nexport default {\n  main: {\n    // vite config options\n  },\n  preload: {\n    // vite config options\n  },\n  renderer: {\n    // vite config options\n  }\n}\n```\n\n### Getting Started\n\nClone the [electron-vite-boilerplate](https://github.com/alex8088/electron-vite-boilerplate) or use the [create-electron](https://github.com/alex8088/quick-start/tree/master/packages/create-electron) tool to scaffold your project.\n\n```bash\nnpm create @quick-start/electron@latest\n```\n\nCurrently supported template presets include:\n\n|                                                 JavaScript                                                 |                                                    TypeScript                                                    |\n| :--------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------: |\n| [vanilla](https://github.com/alex8088/quick-start/tree/master/packages/create-electron/playground/vanilla) | [vanilla-ts](https://github.com/alex8088/quick-start/tree/master/packages/create-electron/playground/vanilla-ts) |\n|     [vue](https://github.com/alex8088/quick-start/tree/master/packages/create-electron/playground/vue)     |     [vue-ts](https://github.com/alex8088/quick-start/tree/master/packages/create-electron/playground/vue-ts)     |\n|   [react](https://github.com/alex8088/quick-start/tree/master/packages/create-electron/playground/react)   |   [react-ts](https://github.com/alex8088/quick-start/tree/master/packages/create-electron/playground/react-ts)   |\n|  [svelte](https://github.com/alex8088/quick-start/tree/master/packages/create-electron/playground/svelte)  |  [svelte-ts](https://github.com/alex8088/quick-start/tree/master/packages/create-electron/playground/svelte-ts)  |\n|   [solid](https://github.com/alex8088/quick-start/tree/master/packages/create-electron/playground/solid)   |   [solid-ts](https://github.com/alex8088/quick-start/tree/master/packages/create-electron/playground/solid-ts)   |\n\n## Contribution\n\nSee [Contributing Guide](CONTRIBUTING.md).\n\n## License\n\n[MIT](./LICENSE) © alex.wei\n","readmeFilename":"README.md"}