Skip to content
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

[vue.config.js]process.env.NODE_ENV Don't work #1211

Closed
An0nymous0 opened this issue May 2, 2018 · 3 comments
Closed

[vue.config.js]process.env.NODE_ENV Don't work #1211

An0nymous0 opened this issue May 2, 2018 · 3 comments

Comments

@An0nymous0
Copy link

An0nymous0 commented May 2, 2018

Version

3.0.0-beta.9

Reproduction link

#1084

Steps to reproduce

console.log(process.env.NODE_ENV)
module.exports = {
baseUrl = process.env.NODE_ENV === 'production' ? 'http://study.cdn.xxxxxx.com/yhbj-index/root/' : '/'
}

What is expected?

npm run (vue-cli-service serve --open)

process.env.NODE_ENV=production|development

What is actually happening?

process.env.NODE_ENV=undefined

@Akryum
Copy link
Member

Akryum commented May 2, 2018

Closing in favor of #1102

@Akryum Akryum closed this as completed May 2, 2018
@Akryum
Copy link
Member

Akryum commented May 2, 2018

Actually this has been fixed in d595ada

@An0nymous0
Copy link
Author

An0nymous0 commented May 3, 2018

@Akryum Thank you, looking forward to the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants