vite-plugin-compression icon indicating copy to clipboard operation
vite-plugin-compression copied to clipboard

Use gzip or brotli to compress resources

Results 23 vite-plugin-compression issues
Sort by recently updated
recently updated
newest added

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 ``` ![截屏2022-06-12 23.36.35.png](https://user-images.githubusercontent.com/29367025/173241066-8ebe153c-e33f-49f2-85ea-c5a123e63e1b.png) After: ``` dist/index.html.br 1.59kb / brotliCompress: 0.51kb ``` ![截屏2022-06-12 23.38.43.png](https://user-images.githubusercontent.com/29367025/173241164-a58e68c7-eb21-4e28-b803-88ddb9fee328.png)

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...