ligershark / WebOptimizer

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

Unable to change settings from code / Documentation out of date #265

Open CallumRBreen opened 1 year ago

CallumRBreen commented 1 year ago

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

ZephyrZiggurat commented 1 year ago

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

madskristensen commented 1 year ago

I'll release a new version