diff --git a/packages/@vue/cli-service/lib/Service.js b/packages/@vue/cli-service/lib/Service.js index 77c9d261e6..525da990cd 100644 --- a/packages/@vue/cli-service/lib/Service.js +++ b/packages/@vue/cli-service/lib/Service.js @@ -21,14 +21,14 @@ module.exports = class Service { this.commands = {} this.pkg = this.resolvePkg(pkg) + // load base .env + this.loadEnv() + const userOptions = this.loadProjectOptions(projectOptions) this.projectOptions = Object.assign(defaults(), userOptions) debug('vue:project-config')(this.projectOptions) - // load base .env - this.loadEnv() - // install plugins. // If there are inline plugins, they will be used instead of those // found in package.json.