Is it possible to prevent DevTools from getting included into builds?


It seems like the DevTools module shouldn’t be necessary for most apps to run and since it also seems like a big module, we were wondering if there’s a way to prevent it from getting included into builds.


I can see how leaving out the dev tools could lighten up your build. Keeping it in there, though, would make it easier for end users to file bug reports or offer patches – if you’re working on an open-source project.

(Sorry, I don’t know much about building Electron, but that’s what I thought of.)



Sure, but for the cases where it isn’t necessary, it’d be nice to have a way to exclude it from builds.