vite-plugin-compression

vite plugin. compress your bundle file.

MIT License

Downloads
141.3K
Stars
122

Bot releases are hidden (Show)

vite-plugin-compression - V0.3.0

Published by nonzzz almost 2 years ago

Patches

  • Fix bundle file condit.
vite-plugin-compression - V0.2.0

Published by nonzzz almost 2 years ago

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 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'
  • Optimize compression performance

Patch

  • Fix document description.

Credits

@nonzzz

vite-plugin-compression - V0.1.0

Published by nonzzz almost 2 years ago

vite-plugin-compression - V0.0.3

Published by nonzzz over 2 years ago

Patches

  • Fix removeFiles wrong file address.
vite-plugin-compression - V0.0.2

Published by nonzzz over 2 years ago

Improvements & Features

  • Use node stream compress file.
  • Has more friendly filtering options