Browse Source

Update POST.md

pull/21742/head
maliming 1 year ago
committed by GitHub
parent
commit
b2f5419176
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 36
      docs/en/Community-Articles/2024-11-25-Global-Assets/POST.md

36
docs/en/Community-Articles/2024-11-25-Global-Assets/POST.md

@ -219,19 +219,11 @@ public class MyProjectNameScriptBundleContributor : BundleContributor
```cs
Configure<AbpBundlingOptions>(options =>
{
options
.StyleBundles
.Add(BlazorStandardBundles.Styles.Global, bundle =>
{
bundle.AddContributors(typeof(MyProjectNameStyleBundleContributor));
});
options
.ScriptBundles
.Add(BlazorStandardBundles.Scripts.Global, bundle =>
{
bundle.AddContributors(typeof(MyProjectNameScriptBundleContributor));
});
var globalStyles = options.StyleBundles.Get(BlazorWebAssemblyStandardBundles.Styles.Global);
globalStyles.AddContributors(typeof(MyProjectNameStyleBundleContributor));
var globalScripts = options.ScriptBundles.Get(BlazorWebAssemblyStandardBundles.Scripts.Global);
globalScripts.AddContributors(typeof(MyProjectNameScriptBundleContributor));
});
```
@ -285,19 +277,11 @@ public class MyProjectNameScriptBundleContributor : BundleContributor
```cs
Configure<AbpBundlingOptions>(options =>
{
options
.StyleBundles
.Add(BlazorStandardBundles.Styles.Global, bundle =>
{
bundle.AddContributors(typeof(MyProjectNameStyleBundleContributor));
});
options
.ScriptBundles
.Add(BlazorStandardBundles.Scripts.Global, bundle =>
{
bundle.AddContributors(typeof(MyProjectNameScriptBundleContributor));
});
var globalStyles = options.StyleBundles.Get(BlazorWebAssemblyStandardBundles.Styles.Global);
globalStyles.AddContributors(typeof(MyProjectNameStyleBundleContributor));
var globalScripts = options.ScriptBundles.Get(BlazorWebAssemblyStandardBundles.Scripts.Global);
globalScripts.AddContributors(typeof(MyProjectNameScriptBundleContributor));
});
```

Loading…
Cancel
Save