Skip to content

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.

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
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.

5 participants