sindresorhus / electron-debug

Adds useful debug features to your Electron app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run only for development?

zweicoder opened this issue · comments

Is it possible to only run this in development mode?

This module is currently not opinionated about that and it's up to you to disable it for production. I've been thinking about automating this, but not sure the best way of doing it, because as far as I know there's no convention of what's debug and release builds with Electron apps. How do you define "development mode"?

I see.. As far as I know from my limited experience with Electron there doesn't seem to be an official way to do it. I'm currently doing NODE_ENV=dev electron . to start the app and using process.env.NODE_ENV to check for the variable value.

Will be closing this issue now as my problem is resolved!

I'd like to keep it open as I want to look into this at some point.

Fixed by 4039271. Available in 0.6.0.