From 7aa187c89a5c3655292b15d1cb17c5c2f29c1811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Sun, 28 Jul 2024 12:06:57 +0200 Subject: [PATCH] --compressor-class: add more docs --- docs/base.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/base.rst b/docs/base.rst index b0b272ae..7b65b1b8 100644 --- a/docs/base.rst +++ b/docs/base.rst @@ -69,7 +69,7 @@ Usage is simple: .. code-block:: console $ python -m whitenoise.compress --help - usage: compress.py [-h] [-q] [--no-gzip] [--no-brotli] + usage: compress.py [-h] [-q] [--no-gzip] [--compressor-class COMPRESSOR_CLASS] [--no-brotli] root [extensions [extensions ...]] Search for all files inside *not* matching and produce @@ -87,6 +87,8 @@ Usage is simple: -q, --quiet Don't produce log output --no-gzip Don't produce gzip '.gz' files --no-brotli Don't produce brotli '.br' files + --compressor-class COMPRESSOR_CLASS + Custom compressor class to use (default: whitenoise.compress.Compressor) You can either run this during development and commit your compressed files to your repository, or you can run this as part of your build and deploy processes.