Skip to content

Adds support for additional arguments in TailwindHostedService - #7

Merged
jonhilt merged 1 commit into
mainfrom
feature/additional-args
Oct 1, 2025
Merged

jonhilt merged 1 commit into
mainfrom
feature/additional-args

Conversation

@jonhilt

@jonhilt jonhilt commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

This pull request adds support for passing additional arguments to the Tailwind CLI process and improves test coverage to ensure these arguments are handled correctly. The main changes include updating the TailwindOptions class, modifying the hosted service to use the new option, and adding a new test.

Feature: Support for additional Tailwind CLI arguments

  • Added a new property AdditionalArguments to the TailwindOptions class, allowing users to specify extra command-line arguments for the Tailwind CLI.
  • Updated the TailwindHostedService to append AdditionalArguments to the CLI invocation if provided, ensuring they are included when starting the process.

Testing:

  • Added a new unit test AdditionalArgumentsAreIncludedInProcessStart to verify that any additional arguments specified in TailwindOptions are correctly passed to the process.

Code cleanup:

  • Removed an unused using Microsoft.Extensions.Configuration; directive from TailwindHostedService.cs.

Minor:

  • Updated user settings in .DotSettings.user file to toggle session activity flags for unit test sessions.

@jonhilt
jonhilt merged commit fd5667e into main Oct 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants