How to use react-scripts in combination with electron?
See original GitHub issueI try to combine a create-react-app
started with react-scripts
with electron
. Is it possible to setup my electron project to run from localhost in development mode? And how to keep node functionality like fs
and __dirname
alive through webpack build process?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Building a production electron/create-react-app application ...
First, we use react-scripts to compile our React code into a production-ready version. Second, we copy our Electron code into the correct build ......
Read more >Building a desktop app with Electron and Create React App
We'll use it to run both the Electron process and the React app in watch mode. cross-env : Run scripts that set and...
Read more >Building an Electron application with create-react-app
I recently built an Electron app using create-react-app. I didn't need to muck about with Webpack, or “eject” my app, either.
Read more >Building Electron desktop apps with React using Codemagic
TL;DR: You can use Codemagic CI/CD to build and publish Electron desktop apps. In this article, we will create a sample app for...
Read more >Getting Started with Electron by Creating a React App
The methods of creating desktop applications have come a long way. Every day, developers are coming up with easier to use options for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://medium.freecodecamp.org/building-an-electron-application-with-create-react-app-97945861647c
For two package.json architecture (one for js, one for native modules), you should be able to ignore
src/node_modules
.Here is my updated config-rewired.js