question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to avoid electron-forge start?

See original GitHub issue

Before 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MarshallOfSoundcommented, May 29, 2019

@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 using start 😄

0reactions
trusktrcommented, May 29, 2019

I tried v6, and… it worked! Nice.

If I have "main": "src/main" in package.json, then what’s actual difference between electron src/main/index.js and electron-forge start? Why do we need electron-forge start? Is that useful if we have build plugins, so in my case not useful because I have plain JS?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found