We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 993687e commit 445ec50Copy full SHA for 445ec50
packages/@vue/cli-service/lib/Service.js
@@ -91,7 +91,7 @@ module.exports = class Service {
91
loadEnv (mode) {
92
const logger = debug('vue:env')
93
const baseDir = this.projectOptions
94
- ? path.posix.join(this.projectOptions.environmentsDir, this.context) : this.context
+ ? path.posix.join(this.context, this.projectOptions.environmentsDir) : this.context
95
const basePath = path.resolve(baseDir, `.env${mode ? `.${mode}` : ``}`)
96
const localPath = `${basePath}.local`
97
0 commit comments