Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended migration strategies? #468

Open
obra opened this issue Jun 2, 2022 · 3 comments
Open

Recommended migration strategies? #468

obra opened this issue Jun 2, 2022 · 3 comments

Comments

@obra
Copy link

obra commented Jun 2, 2022

electron-webpack does an amazingly good job of hiding the complexity behind putting together a complex Electron app.

Since the project is unmaintained, folks have started sharing alternate boilerplates, tools and stacks they're using to replace it, but what I haven't been able to find is a tool or walkthrough for surfacing the full configurations that electron-webpack currently uses on a given project. With its variety of extension mechanisms and computed configuration files, it's not been all that straightforward for me to figure out what the "vanilla" config files for an existing project would be for webpack, babel, and friends.

Does anyone have recommendations or advice on that front?

@loopmode
Copy link
Collaborator

loopmode commented Jun 3, 2022

You could provide custom webpack config files for main and renderer, as explained in docs, and in the config files, export a function instead of config object.
That function receives the config as first argument, and should return the final config.
Now, instead of modifying that - computed - config, you can simply dump it to disc or console output before returning it.
That way, you can inspect the full, generated configs for each of the two processes.

@VTOxfordNetwork
Copy link

We have built an application using this and I was wondering what people have moved to as a base for building electron apps?

@msemtd
Copy link

msemtd commented Oct 11, 2022

The recommended was forward is to use electron-forge with the webpack template, e.g.

yarn create electron-app my-new-app --template=webpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants