diff --git a/BTCPayServer/Hosting/BTCPayServerServices.cs b/BTCPayServer/Hosting/BTCPayServerServices.cs index 8c6bcc01d..8694869be 100644 --- a/BTCPayServer/Hosting/BTCPayServerServices.cs +++ b/BTCPayServer/Hosting/BTCPayServerServices.cs @@ -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; }