Releases: nonzzz/vite-plugin-compression
Releases · nonzzz/vite-plugin-compression
v0.6.0
Background
Improves & Features
- Algorithm will using
gzip
If user pass a error union type. - Update document usage.
v0.5.0
MINOR
- Migrate vite version.
- Peerdependencies support
vite3
andvite
.
v0.4.3
Background
Patches
- Fix dynamicImports loose right assets info.(Vite's intenral logic cause it. So we define the order for us plugin).
v0.4.2
Background
Minor
- Perf chunk collect logic. In collect setp. Don't clone a new buffer data.
- Change release file. using
.mjs
,.js
.
Others
- Update project dependencies.
v0.4.1
Background
Patches
- Fix dynamicImports can't generator right compressed file.
v0.4.0
Background
Improves & Features
- Add
filename
prop.(Control the generator source name) - Enhanced type inference.
- Performance optimization.
V0.3.0
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-compression2
will usegenerateBundle
hook replacecloseBundle
hook. So that we won't support compress the static directory anymore. You should notice it.- Remove
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. - Remove
deleteOriginalAssets
askeep-source-map
Feature & Improves
- Add option
include
( Details see the nextline - Option
exclucde
support more type'string','RegExp'
- Optimize compression performance
Patch
- Fix document description.