Skip to content

feat: make the minimizer config available in all modes #4641

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

Merged
merged 1 commit into from
Oct 6, 2019

Conversation

haoqunjiang
Copy link
Member

@haoqunjiang haoqunjiang commented Oct 2, 2019

As long as the minimize option is set to false (which is default in
production mode), the code won't be minimized regardless of the minimizer config's presence.

By exposing this config, users can simplify their custom config, by
removing the process.env.NODE_ENV === 'production' guard around their
custom minimizer configuration.

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

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

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

  • Yes
  • No

Other information:

As long as the `minimize` option is set to false (which is default in
production mode), the code won't be minimized. So the mode doesn't
matter when it comes to the `minimizer` config.

By exposing this config, users can simplify their custom config, by
removing the `process.env.NODE_ENV === 'production'` guard around their
custom minimizer configuration.
@haoqunjiang haoqunjiang merged commit f5135d4 into vuejs:dev Oct 6, 2019
@haoqunjiang haoqunjiang deleted the feat-terser-availability branch October 6, 2019 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant