Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

electron distinguish between development and production

Rol3oT answered on March 8, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers

  • electron communicate between main and renderer
  • electron communicate between main and renderer
  • electron file association
  • Compile electron app
  • electron js production release Distributing
  • electron js linux dependency

  • electron distinguish between development and production

    0

    For us it has always been easy to do with minimal code. This solution works in both the main and render processes.

    Our main process checks with the following:

    For this we purposely only look for it as the 3rd argv. If your launch script has multiple flags you might have to adjust the specific argv it is looking at. If you want a packaged binary to run this way or make it agnostic to it's placement you best make it loop through process.argv looking for a match.

    Source: https://github.com/electron/electron/issues/7714

    Popularity 2/10 Helpfulness 1/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Mar 08 2023
    Rol3oT
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.