Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to configure --input, --output and --config paths in the *.csproj file #1

Open
joaquinrovira opened this issue Jan 10, 2024 · 1 comment

Comments

@joaquinrovira
Copy link

joaquinrovira commented Jan 10, 2024

First of all thank you for the amazing tool!

Running dotnet tailwind watch executes the following command:

<TAILWIND_EXE> -i <PROJECT_PATH>/styles/app.tailwind.css -o <PROJECT_PATH>/wwwroot/css/app.css -c /hom<PROJECT_PATH>/tailwind.config.js --minify -w

I would like to configure different values for those paths (/styles/app.tailwind.css, /wwwroot/css/app.css , /tailwind.config.js) but see no option or way to configure it in the documentation. Am I missing something or is it not possible at the moment?

I have worked around it by running dotnet tailwind exec -w -i <INPUT> -c <CONFIG> -o <OUTPUT> but it would be best if these values could be configured at a project level so running dotnet tailwind watch just works

@rozumak
Copy link
Owner

rozumak commented Sep 2, 2024

Thank you for using it.

Yes tailwind paths are pre-configured with default settings that cannot be changed. The only way to customize them right now is by running the Tailwind CLI command directly with dotnet tailwind exec -w -i <INPUT> -c <CONFIG> -o <OUTPUT>.

As a workaround, you can create a bash/batch script with this command and run it easily with .\watch (Windows) or ./watch (Unix-like systems).

Currently, there are no plans to read these values from the *.csproj file, but PRs are welcome.

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

No branches or pull requests

2 participants