We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前看官网上mode参数只有development和production,.env文件支持 .env .env.{mode} .env.local .env.{mode}.local 希望构建时可以支持指定自定义的.env文件,例如.env.preonline,.env.test,更方便区分环境
The text was updated successfully, but these errors were encountered:
当指定--env=.env.custom时,你希望哪一种处理:
--env=.env.custom
.env
.env.custom
--env-append
--env-only
个人先反对第3个方案
Sorry, something went wrong.
我个人倾向于第一种处理,因为之前用的是vue-cli就是这种处理,感觉更符合使用逻辑。
现在NodeJS原生有--env-file参数了,我会按照原生的优先级方案来实现这个功能
--env-file
feat(build): 增加--env-file参数支持自定义环境变量文件 (#315)
08b5d33
No branches or pull requests
目前看官网上mode参数只有development和production,.env文件支持
.env
.env.{mode}
.env.local
.env.{mode}.local
希望构建时可以支持指定自定义的.env文件,例如.env.preonline,.env.test,更方便区分环境
The text was updated successfully, but these errors were encountered: