Skip to content

JasonBai007/electron-vue-starter

Repository files navigation

electron-vue-starter

Tech Stack

  1. Vue 2.x
  2. vue-cli 3.x or 4.x
  3. vue-cli-plugin-electron-builder 2.0
  4. electron 12
  5. element-ui 2.15.1
  6. fetch
  7. echarts 5.0

Project setup

# 设置npm的镜像源
npm config set registry https://registry.npm.taobao.org

# 设置electron的镜像源(必须设置,否则会一直安装失败)
# 1. 查看 npmrc 文件路径
npm config ls -l

# 2. 找到 .npmrc 文件的路径,我的在:C:\Users\86158\.npmrc

# 3. 打开这个文件,添加如下配置:
electron_mirror=https://npm.taobao.org/mirrors/electron/

# 安装依赖
npm install

Compiles and hot-reloads for development

npm run electron:serve

Compiles and minifies for production

npm run electron:build

Useful Links

  1. Vue-cli
  2. Vue CLI Plugin Electron Builder
  3. 教程源地址

About

a template with vue & electron

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published