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

Static compression #927

Closed
aleclarson opened this issue Oct 19, 2020 · 2 comments
Closed

Static compression #927

aleclarson opened this issue Oct 19, 2020 · 2 comments

Comments

@aleclarson
Copy link
Member

Is your feature request related to a problem? Please describe.
Provide built-in support for "static compression", which means compressing static assets at build-time.

Describe the solution you'd like
Maybe a compress flag in vite.config.js that uses brotli?

Describe alternatives you've considered
Figure out how to get rollup-plugin-brotli working either in vite.config.js (via rollupInputOptions.plugins) or through a custom Vite plugin.

@brmdbr
Copy link

brmdbr commented Oct 20, 2020

This would be very welcome! rollup-plugin-brotli doesn't work out of the box with Vite.

@underfin
Copy link
Member

underfin commented Oct 21, 2020

Same with #880. This happend because the vite use bundle.generate, so the writebundle of plugins won't invoke.Just track it for #880

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants