Bundle a create-react-app
with electron
.
If you don't need to develop within Electron, it's just a basic create-react-app
.
Start it with npm start
, test it with npm test
, etc.
If you need to start the app within an Electron instance (develoment), use:
npm run electron-dev
And for a production build:
npm run electron-prod
- Electron Packager
Bundling create-react-app
and electron
together is explained on this Medium post by Christian Sepulveda.