-
-
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
ENV/mode loading timing problem #959
Comments
Um...seems to be a bug, user options is loaded before NODE_ENV initialized. |
We might have an architectural issue here. The This might not be a simple change this line type of bugfix. |
As a workaround, I remember putting |
@LinusBorg , Yes, I managed to find a clean fix and realized it's not that simple...Actually we can pass all user arguments in to |
As a workaround at the moment I'm using |
Version
3.0.0-beta.5
Reproduction link
https://codepen.io/anon/pen/yKBxvQ
Steps to reproduce
1 .vue.config.js
module.exports = {
baseUrl: process.env.NODE_ENV === 'production' ? "{{.urlPrefix}}" : "debug",
}
2 .run vue-cli-service build --mode production in command line
What is expected?
run vue-cli-service build --mode production in command line ; process.env.NODE_ENV === 'production'
What is actually happening?
process.env.NODE_ENV === undefined
The text was updated successfully, but these errors were encountered: