Repository navigation
Allow sirv to looks for precompiled gzip and brotli files by default - #1672
Conversation
lukeed
left a comment
There was a problem hiding this comment.
Technically this means sirv is doing more checks on every request (< 1ms) but that's totally fine 😆 If this part of the app were ever to be exposed to the config layer, it'd be a good thing to expose (with some forced SK overrides)
|
@istarkov can you add a patch changeset so that this PR can be merged and released? ( |
|
I'm curious if there's any Vite or Rollup plugin that you could use rather than a custom script |
Yes some plugins exists https://www.npmjs.com/package/rollup-plugin-brotli and same for gzip, |
This should not change anyting for users who doesnt use brotli or gzip precompiled asset files. But brotli gives real advantages over gzip in compression size.
In absense of sirv config, probably it can be a good default.
For compressing we use following script.