Skip to content

Commit 445ec50

Browse files
committed
fix(cli-service): path posix order param
1 parent 993687e commit 445ec50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/Service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module.exports = class Service {
9191
loadEnv (mode) {
9292
const logger = debug('vue:env')
9393
const baseDir = this.projectOptions
94-
? path.posix.join(this.projectOptions.environmentsDir, this.context) : this.context
94+
? path.posix.join(this.context, this.projectOptions.environmentsDir) : this.context
9595
const basePath = path.resolve(baseDir, `.env${mode ? `.${mode}` : ``}`)
9696
const localPath = `${basePath}.local`
9797

0 commit comments

Comments
 (0)