Skip to content

Vite is not minifying output files #11458

Answered by chenxch
Mister-Hope asked this question in Q&A
Discussion options

You must be logged in to vote

build.minify

Note the build.minify option does not minify whitespaces when using the 'es' format in lib mode, as it removes pure annotations and breaks tree-shaking.

you can use terser

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Abdillah
Comment options

@stellarweb008
Comment options

Answer selected by Mister-Hope
Comment options

You must be logged in to vote
1 reply
@thomasjm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants