hughsk / envify

:wrench: Selectively replace Node-style environment variables with plain strings.
901 stars 57 forks source link

Use without process env #38

Closed NetanelBasal closed 8 years ago

NetanelBasal commented 8 years ago

There is a way to use without including the object process.env (like webpack define plugin work)?

So I can write something like this:

if( PRODUCTION ) {  }
yoshuawuyts commented 8 years ago

nope, you'll have to do process.env.PRODUCTION. Cheers!

ghost commented 8 years ago

Hello, there is any way to choose other prefix than process.env. ?

it will be usefull. Thanks :)

yoshuawuyts commented 8 years ago

@belghitial nope, you'll have to use process.env - cheers!