mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.4 KiB
37 lines
1.4 KiB
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace Volo.Abp.AspNetCore.Components.WebAssembly.Theming.Bundling;
|
|
|
|
[DependsOn(
|
|
typeof(AbpAspNetCoreMvcUiBundlingAbstractionsModule)
|
|
)]
|
|
public class AbpAspNetCoreComponentsWebAssemblyThemingBundlingModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpBundlingOptions>(options =>
|
|
{
|
|
options.GlobalAssets.Enabled = true;
|
|
options.GlobalAssets.GlobalStyleBundleName = BlazorWebAssemblyStandardBundles.Styles.Global;
|
|
options.GlobalAssets.GlobalScriptBundleName = BlazorWebAssemblyStandardBundles.Scripts.Global;
|
|
|
|
options
|
|
.StyleBundles
|
|
.Add(BlazorWebAssemblyStandardBundles.Styles.Global, bundle =>
|
|
{
|
|
bundle.AddContributors(typeof(BlazorWebAssemblyStyleContributor));
|
|
});
|
|
|
|
options
|
|
.ScriptBundles
|
|
.Add(BlazorWebAssemblyStandardBundles.Scripts.Global, bundle =>
|
|
{
|
|
bundle.AddContributors(typeof(BlazorWebAssemblyScriptContributor));
|
|
});
|
|
|
|
options.MinificationIgnoredFiles.Add("_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js");
|
|
});
|
|
}
|
|
}
|
|
|