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

dist/README.md : small Webpack sample code fix #11425

Merged
merged 1 commit into from
Jun 1, 2020
Merged

dist/README.md : small Webpack sample code fix #11425

merged 1 commit into from
Jun 1, 2020

Conversation

nguyenyou
Copy link
Contributor

@nguyenyou nguyenyou commented Jun 1, 2020

This PR fixs the sample code for Webpack configuration, following the note in the define-plugin#usage documention:

When defining values for process prefer 'process.env.NODE_ENV': JSON.stringify('production') over process: { env: { NODE_ENV: JSON.stringify('production') } }. Using the latter will overwrite the process object which can break compatibility with some modules that expect other values on the process object to be defined.

@posva posva merged commit fb589e6 into vuejs:dev Jun 1, 2020
@nguyenyou nguyenyou deleted the patch-1 branch June 13, 2020 14:07
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.

2 participants