ligershark / WebOptimizer

A bundler and minifier for ASP.NET Core
Apache License 2.0
750 stars 113 forks source link

Support for modular registration of modules #302

Open nmocruz opened 3 months ago

nmocruz commented 3 months ago

I was trying to use this library on a migration to dotnet core.

On the migration, I need to add bundles defined by module

ConfigureModuleServices(IServiceCollection services ...)
        service.AddBundle(pipeline => ....

The problem is that I can not call AddWebOptimizer with a second set of bundles. It doesn't append new bundles. Seems like AddWebOptimizer is intended to be called just once, and there no clear way to reconfigure the list of bundles