jsonmaur / jumpsuit

MIT License
1.39k stars 74 forks source link

Disable DevTool in production? #68

Closed tszekely-spotcap closed 7 years ago

tszekely-spotcap commented 7 years ago

Hello, I looked everywhere and couldn't find anything about it: Is there any way to disable the DevTool in production?

PS: jumpsuit.io doesn't work anymore, but you probably know that

tannerlinsley commented 7 years ago

As long as the NODE_ENV.production variable is set in your build tool, the dev-tools shouldn't even be included in the production build.

Remember, jumpsuit build will build a production version of your app.

tszekely-spotcap commented 7 years ago

I'm using my own build system, not the jumpsuit one. Does that make any difference?

tannerlinsley commented 7 years ago

Yes it would. But, as long as the NODE_ENV environment variable is set to production, it won't render the dev tools.

https://github.com/jumpsuit/jumpsuit/blob/master/src/render.js#L31

tannerlinsley commented 7 years ago

Try upgrading to 2.0 and this should be fixed :)