A basic template of electron that uses umijs(contains react & typescript & dva .etc)
- Clone this repo:
git clone https://github.com/baojie223/umijs-electron.git
- Install dependencies:
npm install
- Start develop:
npm run e-dev
then you can start your journey!
- build react app
npm run build
-
change file-path with 'public' in /build/index.html like:
from ...\public... to ...\build...
-
pack electron app:
npm run e-pack
then you create a electron app!