3.0.0 β€’ Published 3 months ago

electron-vite v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Features

  • ⚑️ Vite powered and use the same way.
  • πŸ›  Pre-configured for Electron, don't worry about configuration.
  • πŸ’‘ Optimize asset handling (Node.js addons, WebAssembly, Worker Thread, etc).
  • πŸš€ Fast HMR for renderer processes.
  • πŸ”₯ Hot reloading for main process and preload scripts.
  • πŸ”Œ Easy to debug in IDEs like VSCode or WebStorm.
  • πŸ”’ Compile to v8 bytecode to protect source code.
  • 🏷️ Support for TypeScript decorators.
  • πŸ“¦ Out-of-the-box support for TypeScript, Vue, React, Svelte, SolidJS and more.

Usage

Install

npm i electron-vite -D

Development & Build

In a project where 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:

{
  "scripts": {
    "start": "electron-vite preview",
    "dev": "electron-vite dev",
    "prebuild": "electron-vite build"
  }
}

Configuration

When 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:

// electron.vite.config.js
export default {
  main: {
    // vite config options
  },
  preload: {
    // vite config options
  },
  renderer: {
    // vite config options
  }
}

Getting Started

Clone the electron-vite-boilerplate or use the create-electron tool to scaffold your project.

npm create @quick-start/electron

Currently supported template presets include:

JavaScriptTypeScript
vanillavanilla-ts
vuevue-ts
reactreact-ts
sveltesvelte-ts
solidsolid-ts

Contribution

See Contributing Guide.

License

MIT Β© alex.wei

3.1.0-beta.0

3 months ago

3.0.0

4 months ago

3.0.0-beta.0

5 months ago

2.3.0

12 months ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

2.0.0-beta.4

1 year ago

2.0.0-beta.3

1 year ago

2.0.0-beta.2

1 year ago

2.0.0-beta.1

2 years ago

2.0.0-beta.0

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.27

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-alpha.3

3 years ago

1.0.0-alpha.2

3 years ago

1.0.0-alpha.1

3 years ago

1.0.0-alpha.0

3 years ago