You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use zopfli for compressing assets before serving them on a CDN.
For a file like app.css, when zopfli compresses it, it creates app.css.gz.
It would be really helpful for many use-cases if we had a command-line option for zopfli that would create the compressed file with the same name. (i.e. app.css)
The text was updated successfully, but these errors were encountered:
Zopfli takes an uncompressed file and writes to a compressed file (unlike zopflipng which turns a PNG into another PNG), which is why it adds .gz to the filename (similar to the gzip tool). If overwriting the uncompressed file with a compressed file is an interesting use case though, I can look into it. Thanks for the suggestion.
For now, could something like this work? zopfli app.css -c > /tmp/app.css && mv /tmp/app.css app.css, or, zopfli app.css && mv app.css.gz app.css
I use zopfli for compressing assets before serving them on a CDN.
For a file like
app.css
, whenzopfli
compresses it, it createsapp.css.gz
.It would be really helpful for many use-cases if we had a command-line option for
zopfli
that would create the compressed file with the same name. (i.e.app.css
)The text was updated successfully, but these errors were encountered: