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

fix($core): set NODE_ENV before creating app #1972

Merged
merged 4 commits into from
Nov 27, 2019

Conversation

kefranabg
Copy link
Collaborator

Summary

Fix #1967

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Other, please describe:

If changing the UI of default theme, please provide the before/after screenshot:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)

You have tested in the following browsers: (Providing a detailed version will be better.)

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature
  • Related documents have been updated
  • Related tests have been updated

To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

@kefranabg kefranabg requested a review from ulivz October 23, 2019 10:07
Copy link
Member

@ulivz ulivz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also help update the dev section? Thanks

@kefranabg
Copy link
Collaborator Author

@ulivz you mean do the same changes for the dev command ? I already checked but NODE_ENV is never assigned to development or dev in the code.

I did not found any part of the code checking if the current mode is development

@ulivz
Copy link
Member

ulivz commented Oct 30, 2019

@kefranabg Yes, but setting development under dev is the convention of webpack, maybe user would use it.

@kefranabg kefranabg requested a review from ulivz October 30, 2019 16:38
@meteorlxy
Copy link
Member

What about merging #2028 into this PR? @kefranabg

@meteorlxy meteorlxy changed the title fix($core): Set production mode before creating VuePress app on build mode fix($core): set NODE_ENV before creating VuePress app Nov 27, 2019
Copy link
Member

@meteorlxy meteorlxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@meteorlxy meteorlxy changed the title fix($core): set NODE_ENV before creating VuePress app fix($core): set NODE_ENV before creating app Nov 27, 2019
@meteorlxy meteorlxy merged commit 245be8d into master Nov 27, 2019
@meteorlxy meteorlxy deleted the fix/production-env-build branch November 27, 2019 02:55
@vue-bot
Copy link

vue-bot commented Nov 27, 2019

Hey @kefranabg, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚

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

Successfully merging this pull request may close these issues.

NODE_ENV not being set to production when building
4 participants