Closed ynnob closed 7 months ago
The issue should be resolved in 1.2.1. If you still encounter issues, I'd recommend deleting and re-installing the extension, since I found that the previous extension version used an incorrect version of System.Text.Json
(hence causing the tailwind.extension.json
issues).
Thank you for the bug report!
Thanks. Is there a way for you to enable the watch on rebuild only in the scope of the tailwind project. Atm the tailwind build process starts even in c sharp files of undependend projects in the same solution.
Or does this depend on the declared file paths in the config?
If I’m understanding you correctly, you can just click the Build menu at the top and click Start Tailwind CSS Build Process. This should only build the tailwind file and nothing else.
I mean this starts something similar to
npx tailwindcss -i ./src/input.css -o ./src/output.css --watch
When i save a file then the build process is triggerd. But this also happens outside of the ASP.NET Project for example in a Class Library Project when saving a c# file or while debugging and saving a class in a api project.
But i guess the rebuild is somehow "bound" to hot reload or is the "build tailwind css" just running the normal build command with watch in the background?
Then it is my config file that maybe tells tailwind to scan more files then i want. Have to check that on monday. Thanks anyway!
Hey i am not really shure what exactly iks happening but i try my best to describe the setup:
TLDR: Reopening the Project Solution leads the tailwind build process to overwrite the input.css file while ignoring the settings in tailwind.extension.json
Steps:
Now to the Bug:
Extension Version: 1.2.0
Visual Studio Microsoft Visual Studio Enterprise 2022 (64-Bit) - Current Version 17.8.4
Files: tailwind.extension.json
{"ConfigurationFile":"tailwind.config.js","InputCssFile":"input.css","OutputCssFile":"wwwroot\\css\\app.css"}
tailwind.config.js
package.json
Tailwind Extension Options: