Add Sass compiler configuration and enable scoped CSS generation
This commit is contained in:
@@ -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<LocalStorageService>();
|
||||
|
||||
10
FoodsharingSiegen.Server/sasscompiler.json
Normal file
10
FoodsharingSiegen.Server/sasscompiler.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"GenerateScopedCss": true,
|
||||
"ScopedCssFolders": [
|
||||
"Views",
|
||||
"Pages",
|
||||
"Shared",
|
||||
"Components",
|
||||
"Controls"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user