V0.2.0
Background
FYI. It's a break change. In past we compress all of file at close Bundle lifecycle. But discovered over time during use this plugin. Find that we not need compress the static directory.
Major
vite-plugin-compression2will usegenerateBundlehook replacecloseBundlehook. So that we won't support compress the static directory anymore. You should notice it.- Remove
loginfooption. Sincevite 2.x. Vite provide it own selfcompress ratio. So we don't emit the same message to terminal. ( May be after future. We will intercept stdout and wrapepr it again. - Remove
deleteOriginalAssetsaskeep-source-map
Feature & Improves
- Add option
include( Details see the nextline - Option
exclucdesupport more type'string','RegExp' - Optimize compression performance
Patch
- Fix document description.