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

Ability to serve .html.gz, .js.gz .json.gz etc. #809

Open
hybridherbst opened this issue Jul 23, 2024 · 1 comment
Open

Ability to serve .html.gz, .js.gz .json.gz etc. #809

hybridherbst opened this issue Jul 23, 2024 · 1 comment

Comments

@hybridherbst
Copy link

Description

In #460, compressing files on serve was introduced.

However, it looks like serve still can't serve already compressed files. (e.g. result of viteCompression() or other commonly used plugins)

Would it be possible to add that?

Why

Testing full deployments of already prezipped files that the server just unpacks on serve

Alternatives

Locally testing without gzip and not really being sure if the gzipped version also works

@khromov
Copy link

khromov commented Jul 29, 2024

I think sirv does support .gz and .br file endings today, see:
https://www.npmjs.com/package/sirv#optsgzip
https://www.npmjs.com/package/sirv#optsbrotli

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