thanks for your tutorial! I am running into difficulties though. It seems the webpack process is separated from the node process (is what I guess). I made a very small change to your repository to demonstrate: If I use fs.readdir in App.js I will get the error
Uncaught TypeError: _fs2.default.readdir is not a function
See for yourself
electron-with-create-react-app - Sample Electron application using create-react-appgithub.com
All I did was import fs and run fs.readdir in the constructor.