I have a directory filled with CSS files that I want to minify using Cassette. Here's the structure so far:
I've initialized a class
public class CSSBundleHelper : IConfiguration<BundleCollection>
{
public void Configure(BundleCollection bundles)
{
var BundlePath = ConfigurationManager.AppSettings["CSSBundleFolder"];
var path = ConfigurationManager.AppSettings["CMSSitesPath"];
bundles.AddPerSubDirectory<StylesheetBundle>(path);
}
}
}
What should I provide as input for the bundle Collection?
List item
Considering the CSS files are located in a folder, do I need to specify an absolute or relative path?
As the files are nested within a folder, I am unsure of how to invoke this function and carry out the bundling process. Any assistance in guiding me through this would be greatly appreciated.