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
1. run script 2. loadEnv( load base .env ) 3. loadUserOptions( vue.config.js ) 4. Starting server 5. setMode( --mode mock load .env.mock) 6. ...
所以就会有个问题,在加载vue.config.js文件里除了configureWebpack, chainWebpack这两个地方写方法可以获取mode和对应加载的env就没办法了,做一些 mock 和 development 区别就变的不容易
vue.config.js
configureWebpack
chainWebpack
mock
development
只能在vue.config.devServer这里配置是生效的,在configureWebpack, chainWebpack这两个地方改都没有merge进去
vue.config.devServer
mode设置提前
1. run script 2. loadEnv( load base .env ) 3. setMode( --mode mock load .env.mock) 4. loadUserOptions( vue.config.js ) 5. Starting server 6. ...
是不是可以考虑也可以在configureWebpack, chainWebpack设置所有配置
The text was updated successfully, but these errors were encountered:
English please.
Sorry, something went wrong.
Closing to be tracked in #959
No branches or pull requests
What problem does this feature solve?
目前mode加载对应的.env文件是下面这样的
所以就会有个问题,在加载
vue.config.js
文件里除了configureWebpack
,chainWebpack
这两个地方写方法可以获取mode和对应加载的env就没办法了,做一些mock
和development
区别就变的不容易proxy配置
只能在
vue.config.devServer
这里配置是生效的,在configureWebpack
,chainWebpack
这两个地方改都没有merge进去What does the proposed API look like?
mode设置提前
是不是可以考虑也可以在configureWebpack, chainWebpack设置所有配置
The text was updated successfully, but these errors were encountered: