All our projects use the same Web Optimizer settings. To align the configurations and make sure the configuration will not be adapted, removed or changed in the productive environments of all applications, we like to have the ability to define the settings for the Web Optimizer directly when calling the AddWebOptimizer service extension. The call to the extension is encapsulated in a global nuget for all project, pre add all general js files like file download, bootstrapping etc.
Code Changes PR:
Via the AddWebOptimizer extension you can directly configure the web optimizer options:
Every extension now supports the direct configuration via code. There are no breaking changes.
The Readme was adapted.
Let me know if this PR has a change to get merged into main. If I there are any wishes for corrections let me know. Then we try to adapt the code as fast as possible.
Use Case
All our projects use the same Web Optimizer settings. To align the configurations and make sure the configuration will not be adapted, removed or changed in the productive environments of all applications, we like to have the ability to define the settings for the Web Optimizer directly when calling the AddWebOptimizer service extension. The call to the extension is encapsulated in a global nuget for all project, pre add all general js files like file download, bootstrapping etc.
Code Changes PR:
Via the AddWebOptimizer extension you can directly configure the web optimizer options:
Every extension now supports the direct configuration via code. There are no breaking changes.
The Readme was adapted.
Let me know if this PR has a change to get merged into main. If I there are any wishes for corrections let me know. Then we try to adapt the code as fast as possible.