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

[Feature]: Support for dotenv #47

Closed
chenjiahan opened this issue Oct 11, 2023 · 0 comments · Fixed by #759
Closed

[Feature]: Support for dotenv #47

chenjiahan opened this issue Oct 11, 2023 · 0 comments · Fixed by #759

Comments

@chenjiahan
Copy link
Member

What problem does this feature solve?

Environment variables can be read from the following environments when building (lower to higher priority):

  • .env
  • .env.local
  • .env.[mode]
  • .env.[mode].local

What does the proposed API look like?

refer to: web-infra-dev/rspack#2208

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.

1 participant