electron-webpack icon indicating copy to clipboard operation
electron-webpack copied to clipboard

How do we run the build output? Docs don't really say.

Open trusktr opened this issue 6 years ago • 3 comments

Docs don't say how to run the build output. The docs go on to recommend using electron-builder as a next step

But how do we just run it?

trusktr avatar Feb 14 '19 22:02 trusktr

I want to run some tests without hot module replacement, which electron-webpack dev seems to automatically load. It'd be nice if there was something like electron-webpack prod to test a production-like version locally without having to run electron-builder to make a package just to test things.

trusktr avatar Feb 14 '19 23:02 trusktr

So how do we run the build output? The question was unanswered (!)

weoreference avatar Jul 01 '20 23:07 weoreference

Well I don't believe there is such a feature this far; the codebase seems to be built entirely towards the goal of 1) developing an app with HMR (that's the actual feature) and then 2) building a production version of that app.

So, what it takes here is a volunteer who spends time and creativity to implement what's requested and submits a PR.. Maybe it's possible to do it just by clever adjustments to configuration, without changing the actual codebase or submitting PRs, but I'm not sure about that. The project is a lot about generating configs programmatically, so it might need changes in code as well.

loopmode avatar Jul 02 '20 04:07 loopmode