Skip to content

Commit 92da3ec

Browse files
authored
Handle config argument for tailwind v4
1 parent c338ac6 commit 92da3ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/django_tailwind_cli/config.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ def watch_cmd(self) -> list[str]:
4141
def build_cmd(self) -> list[str]:
4242
result = [
4343
str(self.cli_path),
44-
"--config",
45-
str(self.config_file),
4644
"--output",
4745
str(self.dist_css),
4846
"--minify",
4947
]
5048

49+
if self.config_file:
50+
result.extend(["--config", str(self.config_file)])
51+
5152
if self.src_css:
5253
result.extend(["--input", str(self.src_css)])
5354

0 commit comments

Comments
 (0)