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

Support a suffix for compressed files #12

Open
Artur- opened this issue Nov 8, 2021 · 1 comment · May be fixed by #13
Open

Support a suffix for compressed files #12

Artur- opened this issue Nov 8, 2021 · 1 comment · May be fixed by #13

Comments

@Artur-
Copy link

Artur- commented Nov 8, 2021

In our use case the server would want to know if a file is compressed or not so that it can serve the file in a way that the browser understands. One way of accomplishing this would be to add a outputSuffix parameter that, when set, would write the compressed version as filename+outputSuffix instead of overwriting the original file.

If this makes sense, I could create a PR once #11 is resolved somehow

@aleclarson
Copy link
Contributor

Sounds great 👍

Artur- added a commit to Artur-/vite-plugin-compress that referenced this issue Nov 9, 2021
Artur- added a commit to Artur-/vite-plugin-compress that referenced this issue Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants