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. So In this pull
request. Will remove those logic.
Major
vite-plugin-compression2 will use generateBundle hook replace closeBundle hook. So that we won't support compress the static directory anymore. You should notice it.
Remove loginfo option. Since vite 2.x. Vite provide it own self compress ratio. So we don't emit the same message to terminal. ( May be after future. We will intercept stdout and wrapepr it again.
Remove deleteOriginalAssets as keep-source-map
Feature & Improves
Add option include ( Details see the nextline
Option exclucde support more type 'string','RegExp'
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. So In this pull request. Will remove those logic.Major
vite-plugin-compression2
will usegenerateBundle
hook replacecloseBundle
hook. So that we won't support compress the static directory anymore. You should notice it.loginfo
option. 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.deleteOriginalAssets
askeep-source-map
Feature & Improves
include
( Details see the nextlineexclucde
support more type'string','RegExp'
Patch