vite-plugin-compression
vite-plugin-compression copied to clipboard
Use gzip or brotli to compress resources
With `vite-plugin-compress` `index.html` does not need to be updated because the names of compressed files are don't change, and so the links in `index.html` do not need to be changed....
Before: ``` dist//Users/wangxinhe/Documents/GitHub/repository/index.html.br 1.59kb / brotliCompress: 0.51kb ```  After: ``` dist/index.html.br 1.59kb / brotliCompress: 0.51kb ``` 
Hi, thanks a lot for this plugin. A nice addition would be to enable user to specify an empty extension `ext: ""` so that the file extension renames the same....
插件执行的顺序
我想在 `viteCompression` 之后增加一个自定义的 Vite 插件,但是我增加的插件无法保证在 `viteCompression` 后面执行,总是先于它执行,为什么呢? `vite.config.ts`: ```typescript import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { viteSingleFile } from 'vite-plugin-singlefile' import viteCompression from 'vite-plugin-compression' import...
When building / importing the plugin the generated ```index.d.ts``` does not export the ```interface VitePluginCompression``` ``` // dist/index.d.ts [...] interface VitePluginCompression { [...] export { export_default as default }; ```...
配置了deleteOriginFile 为 true,但是打包以后,源文件没有被删除。 "vite-plugin-compression": "^0.5.1",
构建后体积从原本的4M,变成了6M,体积变的更大
Chrome is shipping with zstd support in 123, it would be nice if this project supported it also.
[zopfli](https://github.com/google/zopfli) produces a gzip-compatible stream and usually compresses better than zlib.
Using gzip compression on some customer projects sometimes a rebuild results in a different binary result as the gzip header includes a byte representing the OS the compression was performed...