Skip to content

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