vite-plugin-compress icon indicating copy to clipboard operation
vite-plugin-compress copied to clipboard

Support a suffix for compressed files

Open Artur- opened this issue 4 years ago • 1 comments

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

Artur- avatar Nov 08 '21 13:11 Artur-

Sounds great 👍

aleclarson avatar Nov 09 '21 06:11 aleclarson