A very simple react electron application workflow。
Inspired by Poling
Optimized by Tommy Troy Lin
npm i -r https://registry.taobao.org
or
npm i
npm run dev
start webpack
for bundling main
and renderer
- open another terminal,
npm start
start electron app
npm run build
then use the following commands:
npm run pack
bundle without installation packagenpm run pack:mac
bundle and create macOS (.dmg) packagenpm run pack:win
bundle and create window (.exe) package
modify vendors
array in file webpack/vendor.prod.config.babel.js