Is there a way to specify a custom object?
mbrevda opened this issue · 4 comments
mbrevda commented
Let's say I'd rather not pollute my process.env
. Is there a way to specify my own, custom, object to be operated on?
yoshuawuyts commented
Yup, from the docs:
b.transform(envify({
NODE_ENV: 'development'
}))
b.bundle().pipe(output)
cheers! ✨
mbrevda commented
I'm not sure I was clear. Instead of searching for process.env.myVar
, I'd like to search for foo.myVar
.
yoshuawuyts commented
Oh no can't do, that's not within the feature scope of this package. You should probably write your own transform for that. Cheers!
mbrevda commented
Thanks