Skip to content

Explain when .env files are loaded. #4171

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

Merged
merged 1 commit into from
Jul 14, 2019
Merged

Explain when .env files are loaded. #4171

merged 1 commit into from
Jul 14, 2019

Conversation

rimutaka
Copy link
Contributor

It appears that .env files are only loaded at the start of vue-cli-service and are not watched for hot reloads.
I am actually not sure this is the case for everyone, but is so for me.

I think it is worth noting because the expectation is that a file at the root of the project would be watched for hot reloads.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
It appears that .env files are only loaded at the start of `vue-cli-service` and are not watched for hot reloads. 
**I am actually not sure this is the case for everyone, but is so for me.**

I think it is worth noting because the expectation is that a file at the root of the project would be watched for hot reloads.
@StefanFeederle
Copy link

Is it possible to watch for changes on .env files?

@NataliaTepluhina NataliaTepluhina merged commit b22bedb into vuejs:docs Jul 14, 2019
@vue-bot
Copy link

vue-bot commented Jul 14, 2019

Hey @rimutaka, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚

haoqunjiang pushed a commit that referenced this pull request Jul 18, 2019

Verified

This commit was signed with the committer’s verified signature.
haoqunjiang Haoqun Jiang
It appears that .env files are only loaded at the start of `vue-cli-service` and are not watched for hot reloads.
**I am actually not sure this is the case for everyone, but is so for me.**

I think it is worth noting because the expectation is that a file at the root of the project would be watched for hot reloads.

(cherry picked from commit b22bedb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants