Skip to content

Vite + Electron with esbuild, so fast! ⚡

License

Notifications You must be signed in to change notification settings

JoeABCDEF/fast-vite-electron

 
 

Repository files navigation

logo

⚡Vite + Electron & Esbuild Template

This template is used to build vite + electron projects.

NOTE: Main process is built with esbuild. After some modifications, it currently supports emitDecoratorMetadata.

Motivation

In the past, I've been building desktop clients with vue + vue-cli-plugin-electron-builder, and they work very well. But as the project volume grows, webpack-based build patterns become slower and slower.

The advent of vite and esbuild greatly improved the development experience and made me feel lightning fast ⚡.

It took me a little time to extract this template and thank you for using it.

How to use

  • Click the Use this template button (you must be logged in) or just clone this repo.
  • In the project folder:
    # install dependencies
    yarn # npm install
    
    # run in developer mode
    yarn dev # npm run dev
    
    # build
    yarn build # npm run build

Relative

My blog post:

About

Vite + Electron with esbuild, so fast! ⚡

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 81.6%
  • Vue 11.4%
  • JavaScript 4.5%
  • HTML 2.4%
  • Shell 0.1%