Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.15 KB

README.md

File metadata and controls

22 lines (15 loc) · 1.15 KB

Electron Create React App

This project was bootstrapped with Create React App.

Electron Changes

File Additions and updates

  • Procfile - This is used with foreman to make sure the React dev server is started before starting Electron
  • src/electron-wait-react.js - This is also used to make sure the dev server is started before Electron
  • Package.json - Updated and added several scripts (npm start is still used for development), added main, home, and build as well
  • public/electron.js - This was /main.js copied from Electron's electron-quick-start repository
  • Optional .env - Adding BROWSER="none" will prevent the browser from opening when the dev server starts

Scripts

  • npm start will now open an electron window (as well as a browser unless using the above optional .env)

Resources