Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to specify a custom object? #36

Closed
mbrevda opened this issue Jan 3, 2016 · 4 comments
Closed

Is there a way to specify a custom object? #36

mbrevda opened this issue Jan 3, 2016 · 4 comments

Comments

@mbrevda
Copy link

mbrevda commented Jan 3, 2016

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
Copy link
Collaborator

Yup, from the docs:

b.transform(envify({
  NODE_ENV: 'development'
}))
b.bundle().pipe(output)

cheers! ✨

@mbrevda
Copy link
Author

mbrevda commented Jan 3, 2016

I'm not sure I was clear. Instead of searching for process.env.myVar, I'd like to search for foo.myVar.

@yoshuawuyts
Copy link
Collaborator

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
Copy link
Author

mbrevda commented Jan 3, 2016

Thanks

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants