-
Notifications
You must be signed in to change notification settings - Fork 26
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
dotnet watch with sass hosted watcher constantly reloads css files #176
Comments
Hi @Rollerbeetle , Thanks for the detailed description and reproduction steps, I was able to reproduce the issue and it looks like this happens because when the css is changed it will trigger another MSBuild target, which our MSBuild target also indirectly has listed in the |
After further investigation, it actually seems to be an issue with dart-sass itself. In the MSBuild task we specify the I've filed an issue for this in the dart-sass repo sass/dart-sass#2199 , I'll wait for what they'll come back with before making any changes. |
Looks like they fixed it :) After updating to newest where you updated the sass version i no longer have the issue 👍 |
Describe the bug
When running the app with hosted compiler and dotnet watch, the app will constantly reload static css
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected the css files to only change when the sass process actually recompiles them.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context/Thoughts.
I'm not sure what can actually be done, or if this is an issue with the sass versions you are using.
When looking at the css files, it seems to me that the sass process does change the "last modified" etc.
Unsure if it would be possible to use a File Watcher and start the sass process when it detects errors instead.
If thats not viable, and/or the issue is with the Sass binary, maybe just add a note to readme
The text was updated successfully, but these errors were encountered: