Moving AddBundles to BtcPayServerServices

This commit is contained in:
lepipele
2018-02-21 00:05:08 -06:00
committed by nicolas.dorier
parent e4a7263e9b
commit fb736c0d0f

View File

@@ -37,6 +37,7 @@ using BTCPayServer.Authentication;
using Microsoft.Extensions.Caching.Memory;
using BTCPayServer.Logging;
using BTCPayServer.HostedServices;
using Meziantou.AspNetCore.BundleTagHelpers;
namespace BTCPayServer.Hosting
{
@@ -182,6 +183,13 @@ namespace BTCPayServer.Hosting
});
});
// bundling
services.AddBundles(options =>
{
options.UseMinifiedFiles = Environment.GetEnvironmentVariable("BTCPAY_BUNDLEJSCSS") == "true";
options.AppendVersion = true;
});
return services;
}