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

implement built-in .env support #3747

Open
alexander-akait opened this issue Apr 21, 2023 · 5 comments · May be fixed by #3759
Open

implement built-in .env support #3747

alexander-akait opened this issue Apr 21, 2023 · 5 comments · May be fixed by #3759

Comments

@alexander-akait
Copy link
Member

I think we need to implement built-in .env support, there is a good plugin https://github.com/mrsteele/dotenv-webpack

Describe the solution you'd like

Allow to red env variables from .env file and control it using CLI option

Describe alternatives you've considered

No need

Additional context

No need

@silverwind
Copy link

How about supporting vite's files? I think multiple files are almost required if you have default vars checked in git and then have another file to override those vars at build time. If the same files as vite could be supported, it'd be some nice compatibilty.

@alexander-akait
Copy link
Member Author

Yeah 👍

@mertcanaltin
Copy link

mertcanaltin commented Apr 24, 2023

@alexander-akait I want to do this 🚀
Would it be weird to add webpack config to the home directory? 🤔

@webpack-bot
Copy link

This issue had no activity for at least half a year.

It's subject to automatic issue closing if there is no activity in the next 15 days.

@silverwind
Copy link

@webpack-bot keep open.

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

Successfully merging a pull request may close this issue.

5 participants
@silverwind @alexander-akait @webpack-bot @mertcanaltin and others