Precompress a directory of assets
precompress
will recursively compress all suitable assets in a given directory,
creating (or replacing) compressed versions of the original files using the
appropriate extension type (e.g. gzip: index.html
-> index.html.gz
).
Using cargo
:
sh
cargo install precompress
``` $ precompress -h precompress 0.1.2 Precompress a directory of assets
USAGE:
precompress [OPTIONS]
ARGS:
OPTIONS:
--brotli
Precompress the files in the current directory using brotli, deflate, and gzip:
precompress --brotli --deflate --gzip .
precompress
is released under the MIT license.
Please see the LICENSE file for more details.