diff --git a/FoodsharingSiegen.Server/Program.cs b/FoodsharingSiegen.Server/Program.cs index 7cd582b..354ed8c 100644 --- a/FoodsharingSiegen.Server/Program.cs +++ b/FoodsharingSiegen.Server/Program.cs @@ -1,4 +1,5 @@ using System.Globalization; +using AspNetCore.SassCompiler; using Blazorise; using Blazorise.Icons.Material; using Blazorise.Material; @@ -19,6 +20,9 @@ builder.WebHost.UseUrls("http://+:8700"); builder.Services.AddRazorPages(); builder.Services.AddServerSideBlazor(); builder.AddDatabaseContext(); +#if DEBUG +builder.Services.AddSassCompiler(); +#endif // DI builder.Services.AddScoped(); diff --git a/FoodsharingSiegen.Server/sasscompiler.json b/FoodsharingSiegen.Server/sasscompiler.json new file mode 100644 index 0000000..76de214 --- /dev/null +++ b/FoodsharingSiegen.Server/sasscompiler.json @@ -0,0 +1,10 @@ +{ + "GenerateScopedCss": true, + "ScopedCssFolders": [ + "Views", + "Pages", + "Shared", + "Components", + "Controls" + ] +}