-
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
Multiple builds required #199
Comments
Here's a brand new solution where the bug occurs. I will try to get hold of another computer to test there. |
I have tested this same solution on another computer (Windows PC, Rider and Visual Studio) and the exact same thing happens. |
Hi @sebdesalvador , Thanks for providing the solution that reproduces the problem you're seeing. If you remove the setting for the ScopedCssFolders from the sasscompiler.json, it will include some default directories but not the Styles folder, meaning it will correctly compile the files in the Styles folder to the wwwroot/css folder. |
Describe the bug
Multiple builds are required before my main css file is generated (usually 2, sometimes 3). Sometimes it doesn't even get generated at all unless I delete all the generated .css files first.
I use SASS, all my .sass files are in a Razor Class Library, I have a general file, under Styles/app.sass, compiled into wwwroot/app.css of the same assembly, and other files are coupled to components for css isolation.
In my main project it's actually broken CSS isolation, I have no idea how to fix it.
To Reproduce
Steps to reproduce the behavior:
App.razor
andRoutes.razor
in Blazor project)ReferenceOutputAssembly="false"
)<Router AppAssembly="typeof(Program).Assembly" AdditionalAssemblies="@( new[] { typeof( MainLayout ).Assembly } )">
(MainLayout.razor
lives in the RCL project)Program.cs
:app.MapRazorComponents< App >().AddInteractiveServerRenderMode().AddAdditionalAssemblies( typeof( MainLayout ).Assembly );
sasscompiler.json
to the RCL project with the following content:Expected behavior
When building, the file wwwroot/app.css should be generated (in the RCL project), and it's never generated on first build. Once it's built a couple of times, the file appears, once it's there, it doesn't always get updated unless I delete it and all other generated css files.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: