Open vitaly-zdanevich opened 3 years ago
For zola serve
and zola build
. As I understand for output you must create filename.br
.
Don't know why I didn't think it was possible to only compress the files for some reason. Think the best package for this may be dropbox/rust-brotli
, but most of the packages I've seen aren't the most up-to-date, unfortunately. We could do a drop-in of the C package, similar to libsass
I would have thought the services where you're hosting the pages would do the compression themselves but I guess it can't hurt to do it ourselves.
We could do a drop-in of the C package, similar to libsass
Let's avoid that, libsass causes so many issues on Windows I don't want to add more.
According to Gitlab documentation now I use this on Alpine image:
- apk add brotli
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec brotli -f -k {} \;
According to Gitlab documentation now I use this on Alpine image:
- apk add brotli - find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec brotli -f -k {} \;
I think it would be ideal to bake it into Zola instead of either having it as a dependency or a bundled executable. Zola's goal is aimed to be one executable at the end of day and not have the dependency hell. (correct me if im wrong ofc)
I assume this is meant for the
zola serve
command? Otherwise, you can configure brotli compression for most web servers already, making this a non-issue.tl;dr: can you elabourate, please and thank you?