vue electron code example

Example 1: electron app from vue

# If starting from scratch
npm install -g @vue/cli
vue create vue-electron-app

# This is the magic command
vue add electron-builder

# Only if using TypeScript
npm install -D @types/electron-devtools-installer
npm install -D @types/node

Example 2: electron-packager

# For use in npm scripts (recommended)
npm install electron-packager --save-dev

# For use from the CLI
npm install electron-packager -g

Example 3: electron js

$ npm i -D electron@latest
# Electron   10.1.3
# Node       12.16.3
# Chromium   85.0.4183.121

Tags:

Misc Example