m0dch3n / vue-cli-plugin-cordova

Vue Cli 3 Cordova Plugin
MIT License
417 stars 63 forks source link

.env not loaded #24

Closed valh1996 closed 6 years ago

valh1996 commented 6 years ago

Hello, is it normal that my".env" file at the root of my project is not loaded?

I would like these variables regardless of mode and platform.

Contents of the .env:

VUE_APP_API_ENDPOINT=http:/127.0.0.1:3333

process.env returns:

{
  NODE_ENV: "development",
  BASE_URL: "",
  CORDOVA_PLATFORM: "browser"
}

VueCLI version: ^3.0.4

Documentation: https://cli.vuejs.org/guide/mode-and-env.html

Thank you in advance for your help!

m0dch3n commented 6 years ago

Which plugin version do you use ? With 2.0.8 everything is working fine... PS My vue cli version is 3.0.5