Migrate to decoupled architecture
Closed this issue · 2 comments
aperkaz commented
Sharp doesnt work with electron-forge, forcing a migration to a decoupled design and electron-build.
aperkaz commented
Try with: ts + shart + FE build (https://github.com/yhirose/react-typescript-electron-sample-with-create-react-app-and-electron-builder/blob/master/electron/main.ts)
aperkaz commented
Due to the different origins between http://locahost:3001 and the file served by electron, https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel doesnt work.
Follow the idea of: https://github.com/johndyer24/electron-cra-example/
https://medium.com/@johndyer24/building-a-production-electron-create-react-app-application-with-shared-code-using-electron-builder-c1f70f0e2649