How to avoid electron-forge start?
See original GitHub issueBefore using electron-forge, I simply start my app like this:
"start": "electron src/main"
Where src/main.js
is a plain JS file. The app is just plain HTML/CSS/JS. I’m just keeping it simple. I don’t want to introduce complexity to this.
How do we work with electron-forge for packaging and creating distributables, without interfering with the simple start process?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to avoid electron-forge start? · Issue #890 - GitHub
Before using electron-forge, I simply start my app like this: "start": "electron src/main" Where src/main.js is a plain JS file.
Read more >CLI - Electron Forge
These commands help you get started with Forge. If you're just getting started with Electron Forge, we recommend you follow the Getting Started...
Read more >Electron App not Working After Packaging - Electron Forge
Tested it Locally using "electron-forge start" and it's running fine. Also, while packaging for Linux platform [ running npm run forgeL64] ...
Read more >Electron-forge - npm.io
Debugging your Electron main process through VS Code is ridiculously easy with Forge. Simply add this as a launch config in VSCode and...
Read more >Packaging Your Application | Electron
Using Electron Forge ... Electron does not have any tooling for packaging and distribution bundled into its core modules. Once you have a...
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 FreeTop 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
Top GitHub Comments
@trusktr It does a number of things for you. Checks your current shell/OS is capable of running Electron, ensure any native modules are built and ready, powers our plugin system along with the forge
hooks
configuration you can set up. It also does some cool stuff for restarting your app quickly.You can just type
rs
into your terminal and hit enter and your app will restart.I’d suggest you use the
start
command purely so that all this stuff is handled for you, even if your app is simple now, one day you’re gonna add a native module and cry unless you’re usingstart
😄I tried v6, and… it worked! Nice.
If I have
"main": "src/main"
inpackage.json
, then what’s actual difference betweenelectron src/main/index.js
andelectron-forge start
? Why do we needelectron-forge start
? Is that useful if we have build plugins, so in my case not useful because I have plain JS?