Skip to content

Add methods to remove bundle files by name or predicate #23175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

maliming
Copy link
Member

@maliming maliming commented Jun 25, 2025

Resolve #23169

Configure<AbpBundlingOptions>(options =>
{
    options.ScriptBundles
        .Configure(typeof(ManageModel).FullName,
            configuration =>
            {
                configuration.RemoveFiles("/Pages/Account/Default.js");
                configuration.AddFiles("/Pages/Account/MyDefault.js");
            });
});

Resolve #23169

```cs
Configure<AbpBundlingOptions>(options =>
{
    options.ScriptBundles
        .Configure(typeof(ManageModel).FullName,
            configuration =>
            {
                configuration.RemoveFiles("/Pages/Account/Default.js");
            });
});
```
@maliming maliming added this to the 10.0-preview milestone Jun 25, 2025
@maliming maliming requested a review from EngincanV June 25, 2025 05:56
@EngincanV EngincanV merged commit 0448563 into dev Jun 25, 2025
3 checks passed
@EngincanV EngincanV deleted the BundleContributorCollection branch June 25, 2025 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support remove operations in BundleContributorCollection
2 participants