Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【问题】请问有大神知道如何配置同时支持brotliCompress和gzip吗 #31

Open
WangJincheng4869 opened this issue Jan 1, 2023 · 1 comment

Comments

@WangJincheng4869
Copy link

我看配置项的参数时string形式,貌似只能配置一种支持,但是我想同时支持brotliCompress和gzip两种,因为这样兼容性会更好。在不支持brotliCompress的场景下就可以使用gzip

@nonzzz
Copy link

nonzzz commented Jan 1, 2023

@WangJincheng4869 这个插件貌似不在维护了,可以考虑使用下 vite-plugin-compression2. 如果你想同时支持.gz.br。你可以给vite设置2个插件。分别传入不同的algorithm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants