diff --git a/src/django_tailwind_cli/config.py b/src/django_tailwind_cli/config.py index 4950b9c..0a5749a 100644 --- a/src/django_tailwind_cli/config.py +++ b/src/django_tailwind_cli/config.py @@ -46,6 +46,9 @@ def build_cmd(self) -> list[str]: "--minify", ] + if self.config_file: + result.extend(["--config", str(self.config_file)]) + if self.src_css: result.extend(["--input", str(self.src_css)]) diff --git a/tests/test_config.py b/tests/test_config.py index ffbd022..9316d14 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -258,6 +258,8 @@ def test_build_cmd_for_tailwind_css_3_x(settings: LazySettings): "--output", str(c.dist_css), "--minify", + "--config", + str(c.config_file), ]