This is a lightweight electron-react boilerplate without unnecessary libraries, if you want to see an overcomplicated solution please take a look at here: https://github.com/electron-react-boilerplate/electron-react-boilerplate
If you'd like to use simple but powerful solutions, this is for you. If it's a new project may you don't want to use javascript.
npm run dev # for development
npm run start # for build and run
npm run package-linux # for create package for linux and you can easily add platforms
However I don't think it's a good idea, because __dirname
is different when it's bundled. But configuring it is hard so I created another branch for you: variation/es6main
.
Feel free to open any issues.