Fixed bundling. Upgraded mooncore.extended
This commit is contained in:
@@ -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<,>));
|
||||
|
||||
Reference in New Issue
Block a user