bennymeg / nx-electron

Electron schematics for nrwl nx platform
Apache License 2.0
328 stars 85 forks source link

How to bundle multiple frontend apps to a single electron app. #173

Closed aravindjaimon closed 2 years ago

aravindjaimon commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I was creating a multi-window electron application. There came a situation where there was a transparent window with two actions "Accept" or "Reject". For this, I created another lightweight react application. But the nx-electron configuration only allows the packing of one react app.

Describe the solution you'd like A clear and concise description of what you want to happen. I wish we can accept frontendProjects instead of frontendProject and make it an array so that multiple frontend apps are packed into the same electron app.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. If I need to achieve at the current scope how can I do it?

Additional context Add any other context or screenshots about the feature request here.

erick-rodriguez-lab49 commented 2 years ago

Usually, an Electron application contains only ONE JS APPLICATION. How you build the application could be related to how you build the application that electron will host.

If you use react-router for example, you can take advantage of it and create multiple sub-apps inside of the main app, and use such paths to load data in different windows.

bennymeg commented 2 years ago

Duplicate #154