Fixed bundling. Upgraded mooncore.extended

This commit is contained in:
2025-02-26 22:32:02 +01:00
parent caa8d47af2
commit 6c5e4c2a1e
5 changed files with 18 additions and 12 deletions

View File

@@ -69,6 +69,7 @@ public class Startup
await CreateStorage();
await SetupAppConfiguration();
await SetupLogging();
await SetupBundling();
await LoadPlugins();
await InitializePlugins();
@@ -126,6 +127,15 @@ public class Startup
return Task.CompletedTask;
}
private Task SetupBundling()
{
BundleService = new();
BundleService.BundleCss("css/core.min.css");
return Task.CompletedTask;
}
#region Base
private Task RegisterBase()
@@ -490,6 +500,7 @@ public class Startup
private async Task RegisterDatabase()
{
WebApplicationBuilder.Services.AddDatabaseMappings();
WebApplicationBuilder.Services.AddServiceCollectionAccessor();
WebApplicationBuilder.Services.AddScoped(typeof(DatabaseRepository<>));
WebApplicationBuilder.Services.AddScoped(typeof(CrudHelper<,>));