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

index.html not referencing the new gzipped files #21

Open
andywillis opened this issue Jul 3, 2022 · 1 comment
Open

index.html not referencing the new gzipped files #21

andywillis opened this issue Jul 3, 2022 · 1 comment

Comments

@andywillis
Copy link

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.

But gzipping the files means that new files are created, and the links to the new files need to be corrected in index.html.

@ffind
Copy link

ffind commented Aug 2, 2022

Hi @andywillis index.html should not point to gzip files. Handling compressed files should be done by server. For express use express-static-gzip

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