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.
54 lines
2.2 KiB
54 lines
2.2 KiB
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace Lsw.Abp.AspnetCore.Components.WebAssembly.AntDesignTheme.Bundling;
|
|
|
|
[DependsOn(
|
|
typeof(AbpAspNetCoreMvcUiBundlingAbstractionsModule)
|
|
)]
|
|
public class AbpAspNetCoreComponentsWebAssemblyAntDesignThemeBundlingModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpBundlingOptions>(options =>
|
|
{
|
|
options.GlobalAssets.Enabled = true;
|
|
options.GlobalAssets.GlobalStyleBundleName = BlazorWebAssemblyAntDesignThemeBundles.Styles.Global;
|
|
options.GlobalAssets.GlobalScriptBundleName = BlazorWebAssemblyAntDesignThemeBundles.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
|
|
.StyleBundles
|
|
.Add(BlazorWebAssemblyAntDesignThemeBundles.Styles.Global, bundle =>
|
|
{
|
|
bundle
|
|
.AddBaseBundles(BlazorWebAssemblyStandardBundles.Styles.Global)
|
|
.AddContributors(typeof(BlazorWebAssemblyAntDesignThemeStyleContributor));
|
|
});
|
|
|
|
options
|
|
.ScriptBundles
|
|
.Add(BlazorWebAssemblyAntDesignThemeBundles.Scripts.Global, bundle =>
|
|
{
|
|
bundle
|
|
.AddBaseBundles(BlazorWebAssemblyStandardBundles.Scripts.Global)
|
|
.AddContributors(typeof(BlazorWebAssemblyAntDesignThemeScriptContributor));
|
|
});
|
|
|
|
options.MinificationIgnoredFiles.Add("_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js");
|
|
});
|
|
}
|
|
}
|
|
|