-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
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
自定义配置文件路径问题 #5584
Labels
Comments
这个 for 循环漏了个 break 的逻辑。 不过,为什么要用这么 hacky 的方式加载配置文件? |
是的 开始是放在vue.config.js中判断,后面发现有这个环境变量就拿来试试了 省了判断的逻辑。这么用确实不好 |
haoqunjiang
added a commit
to haoqunjiang/vue-cli
that referenced
this issue
Jun 19, 2020
Though, it is still a bad practice to use `VUE_CLI_SERVICE_CONFIG_PATH` in a project with `vue.config.js` closes vuejs#5584
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
4.4.4
Environment info
Steps to reproduce
What is expected?
读取项目文件夹下的vue.lib-config.js配置文件
What is actually happening?
实际上读取的是同级文件夹下的vue.config.js配置文件
vue-cli/packages/@vue/cli-service/lib/Service.js
Lines 306 to 318 in a41cac2
之前是通过VUE_CLI_SERVICE_CONFIG_PATH环境变量自定义配置文件路径,请问现在是会被
./vue.config.js
./vue.config.cjs
替换么The text was updated successfully, but these errors were encountered: