-
Notifications
You must be signed in to change notification settings - Fork 145
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
Support using convict in a (browserify-based) browser context #47
Comments
@ronjouch Nevertheless |
@madarche thanks for the response! Yes that's part of the path I followed and I'm now using convict for an application at work. In case that helps someone, the path I followed was:
|
@ronjouch thanks for the answer. I agree with you that we should not widen Nevertheless:
Cheers |
There are a few things preventing this from being browserified:
Either drop the browserify support or fix these issues. Browserify-ability requires a lot of work and greatly limits your choices, so I also suggest adding some karma/phantomjs-based tests so you can catch issues early. |
Hi.
I'm trying to use your package in a browserify setup, but because
conf.loadFile('some.json')
calls variousfs
methods (fs.statSync
,fs.readdirSync
), it fails in the browser.→ Is it something that sounds feasible with convict (or maybe with a browserify transform?), or do you suggest going for another package / custom solution?
Thanks for the help, and sorry for posting this as an issue, it's more of a question to which "we do not and will not support that" can be a fine answer.
The text was updated successfully, but these errors were encountered: