2.2.0 β€’ Published 11 days ago

electron-vite v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days 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

2.2.0

11 days ago

2.1.0

2 months ago

2.0.0

4 months ago

2.0.0-beta.4

4 months ago

2.0.0-beta.3

4 months ago

2.0.0-beta.2

5 months ago

2.0.0-beta.1

5 months ago

2.0.0-beta.0

5 months ago

1.0.29

6 months ago

1.0.28

8 months ago

1.0.26

9 months ago

1.0.25

10 months ago

1.0.27

9 months ago

1.0.24

10 months ago

1.0.23

11 months ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-alpha.3

2 years ago

1.0.0-alpha.2

2 years ago

1.0.0-alpha.1

2 years ago

1.0.0-alpha.0

2 years ago