Skip to content

Commit c04ac9d

Browse files
committed
feat(management): add config file support to build and watch commands
- Add --config flag to _get_build_cmd function to pass custom configuration - Supports TAILWIND_CLI_CONFIG_FILE setting for custom config paths - Fixes issue where custom tailwind.config.js files were not being used - Maintains backward compatibility with existing configurations
1 parent 2ac8521 commit c04ac9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/django_tailwind_cli/management/commands/tailwind.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ def _create_tailwind_config() -> None:
400400
def _get_build_cmd(*, minify: bool = True, watch: bool = False) -> list[str]:
401401
build_cmd = [
402402
str(utils.get_full_cli_path()),
403+
"--config",
404+
str(utils.get_full_config_file_path()),
403405
"--output",
404406
str(utils.get_full_dist_css_path()),
405407
]

0 commit comments

Comments
 (0)