Zulip-desktop: isDev returns true in npm start

Created on 13 Feb 2018  路  4Comments  路  Source: zulip/zulip-desktop

  • Operating System:

    • [ ] Windows

    • [x] Linux/Ubutnu

    • [ ] macOS

  • Clear steps to reproduce the issue:
    Start the app using npm start. All checks for isDev returns true.
  • Relevant error messages and/or screenshots:
    isDev check, used for checking whether app is running in Development environment, returns true even when starting the app through npm start. It should return true only in npm start dev.

Most helpful comment

I think you misunderstand what it means when you are running app in development vs production/packaged app.

  • The app is not considered development only when its packaged and you open a app.
  • Starting manually is considered as development (so anything you do start and app that is not packaged is considered under development.)

All 4 comments

Whatever script you run, if it's in development mode, isDev will return true. Give it a read - https://github.com/sindresorhus/electron-is-dev

How are we determining if it's in development mode? Shouldn't for npm start isDev return 'false'?

I think you misunderstand what it means when you are running app in development vs production/packaged app.

  • The app is not considered development only when its packaged and you open a app.
  • Starting manually is considered as development (so anything you do start and app that is not packaged is considered under development.)

In electron, this is how we decide whether the app is running in dev or prod -

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brainwane picture brainwane  路  9Comments

vsvipul picture vsvipul  路  11Comments

abhigyank picture abhigyank  路  3Comments

LeSeulArtichaut picture LeSeulArtichaut  路  3Comments

syncopated picture syncopated  路  3Comments