You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have added the sasscompiler as so:
#if DEBUG
services.AddSassCompiler();
#endif
But when i debug in visual studio it compiles the scss files. But when i make a change to an scss file, it wont generate the changes to the scss files during that same debug session, making me have to restart the app every single time.
my sasscompiler.json file:
{
"Source": "Styles",
"Target": "wwwroot/css",
"Arguments": "--style=compressed",
"GenerateScopedCss": true,
"ScopedCssFolders": [ "Views", "Pages", "Shared", "Components", "Layout" ],
"IncludePaths": [],
"Compilations": [
// Or an extra directory to a different target directory
{
"Source": "wwwroot/lib",
"Target": "wwwroot/css/lib"
},
{
"Source": "wwwroot/scss",
"Target": "wwwroot/css"
}
],
// You can override specific options based on the build configuration
"Configurations": {
"Debug": { // These options apply only to Debug builds
"Arguments": "--style=expanded"
}
}
}
To Reproduce
Steps to reproduce the behavior:
Start debugging in Visual Studio
Load page
Change SCSS file
Expected behavior
CSS recompilation of that file and working with hot reload (hot reload on file save)
Screenshots
Desktop (please complete the following information):
OS: [e.g. iOS] Windows 10
Browser [e.g. chrome, safari] Edge
Version [e.g. 22]
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22] 131.0.2903.70
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
I've double checked this with a new sample and the latest version of the package, and as long as you have services.AddSassCompiler() it should recompile the scss to css. You will still have to manually refresh the page though.
If it still doesn't work for you, then it would be helpful if you could share the minimal project structure which reproduces your problem (e.g. in a github repo we can clone)
Describe the bug
I have added the sasscompiler as so:
But when i debug in visual studio it compiles the scss files. But when i make a change to an scss file, it wont generate the changes to the scss files during that same debug session, making me have to restart the app every single time.
my sasscompiler.json file:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
CSS recompilation of that file and working with hot reload (hot reload on file save)
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: