基于VUE和Electron的简易框架,实现Vue热更新状态下编写Electron
# Clone this repository
git clone https://github.com/DrawAChicken/Easy-Electron
# Go into the repository
cd Easy-Electron
# Install dependencies
npm install # 推荐yarn!! npm install会生产多余文件,使体积增大
# Run the app
First => npm run dev #运行wbpack热更新
Then => npm start #运行electron
# build ELectron
First => npm run build #先打包静态文件
Then => npm run build:electron #打包electron
- resource文件就是Vue
- 关于node和electron的API 封装在config/api里
- 在resource里引用,一看便知
- 在vue打包完后,会在目录下生产dist文件,文件包含所有静态资源
- 可以在打包Electron时将resource删除
求star 求Issues