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

NODE_ENV is not accessible in vue.config.js #1174

Closed
sanchitnevgi opened this issue Apr 25, 2018 · 1 comment
Closed

NODE_ENV is not accessible in vue.config.js #1174

sanchitnevgi opened this issue Apr 25, 2018 · 1 comment

Comments

@sanchitnevgi
Copy link
Contributor

Version

3.0.0-beta.6

Reproduction link

https://github.com/sanchitgn/chunk/blob/master/vue.config.js#L1

Steps to reproduce

  1. Create new project (vue create)
  2. Add vue.config.js
  3. Log process.env.NODE_ENV in vue.config.js

What is expected?

The environment (development/production) should be output

What is actually happening?

The output is undefined


To modify webpack configuration (plugins, loaders, etc), it is necessary to know the node environment

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