Changes namesspace, fixes cdf registrations, fixes bundle registrations, cleanup

This commit is contained in:
Shannon
2020-04-02 21:19:42 +11:00
parent a67bb197b7
commit 95a36b3064
24 changed files with 72 additions and 119 deletions

View File

@@ -0,0 +1,25 @@
using Umbraco.Core.Composing;
namespace Umbraco.Web.WebAssets
{
public sealed class WebAssetsComponent : IComponent
{
private readonly BackOfficeWebAssets _backOfficeWebAssets;
public WebAssetsComponent(BackOfficeWebAssets backOfficeWebAssets)
{
_backOfficeWebAssets = backOfficeWebAssets;
}
public void Initialize()
{
// TODO: This will eagerly scan types but we don't really want that, however it works for now.
// We don't actually have to change Smidge or anything, all we have to do is postpone this call for when the first request on the website arrives.
_backOfficeWebAssets.CreateBundles();
}
public void Terminate()
{
}
}
}