Skip to content

Commit 92ddd09

Browse files
Hokidyyx990803
authored andcommitted
feat: add ability to use environment variables in vue.config.js (#867)
1 parent b732044 commit 92ddd09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ module.exports = class Service {
2121
this.commands = {}
2222
this.pkg = this.resolvePkg(pkg)
2323

24+
// load base .env
25+
this.loadEnv()
26+
2427
const userOptions = this.loadProjectOptions(projectOptions)
2528
this.projectOptions = Object.assign(defaults(), userOptions)
2629

2730
debug('vue:project-config')(this.projectOptions)
2831

29-
// load base .env
30-
this.loadEnv()
31-
3232
// install plugins.
3333
// If there are inline plugins, they will be used instead of those
3434
// found in package.json.

0 commit comments

Comments
 (0)