WebOptimizer icon indicating copy to clipboard operation
WebOptimizer copied to clipboard

Unable to change settings from code / Documentation out of date

Open CallumRBreen opened this issue 2 years ago • 2 comments

Using version 3.0.372. The docs on the main page say that the settings can be modified, such as:

services.AddWebOptimizer(pipeline =>
    {
        pipeline.AddCssBundle("/css/bundle.css", "css/*.css");
        pipeline.AddJavaScriptBundle("/js/bundle.js", "js/plus.js", "js/minus.js");
    },
    option =>
    {
        option.EnableCaching = true;
        option.EnableDiskCache = false;
        option.EnableMemoryCache = true;
        option.AllowEmptyBundle = true;
    });

I'm unable to see an overload that allows me to configure the options using AddWebOptimizer

CallumRBreen avatar Jan 31 '23 10:01 CallumRBreen

fyi: the update with those overloads didnt make it to NuGet #267

ZephyrZiggurat avatar Feb 22 '23 00:02 ZephyrZiggurat

I'll release a new version

madskristensen avatar Feb 22 '23 17:02 madskristensen