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

Look for .env.defaults and .env.example in same directory as .env #417

Closed
kenjinp opened this issue May 13, 2021 · 2 comments
Closed

Look for .env.defaults and .env.example in same directory as .env #417

kenjinp opened this issue May 13, 2021 · 2 comments

Comments

@kenjinp
Copy link

kenjinp commented May 13, 2021

I have a mono-repo project where I'm trying to gather my .env configuration in my root directory. Currently this plugin allows users to specify the env path, but not the paths for the very useful .env.defaults and .env.examples files. This means I need to place these helper files in each of the project root paths.

An example in the code base where it's looking for the default file in a hardcoded path:
https://github.com/mrsteele/dotenv-webpack/blob/master/src/index.js#L117

I didn't expect the plugin to look for these helpful files in a different path from the one I specified in the path option. I think adding this will make the plugin more user-friendly.

@mrsteele
Copy link
Owner

mrsteele commented Jun 3, 2021

Sounds like a doable idea, I'm a little swamped ATM but if there was a PR submitted I would highly consider it.

@dannegm
Copy link
Contributor

dannegm commented Jul 6, 2022

I made this PR solving this
#487

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

3 participants