Documentation

Bundle Configuration

Cassette bundles are defined using a code-based configuration API. Your web application should contain a public class that implements Cassette.IConfiguration<BundleCollection>.

using Cassette;

public class CassetteConfiguration : IConfiguration<BundleCollection>
{
    public void Configure(BundleCollection bundles)
    {
        // Put configuration here
        // Add bundles to the bundles collection.
    }
}

The Cassette.Aspnet nuget package adds the CassetteConfiguration.cs file to your project.

Adding bundles

The BundleCollection has a set of Add methods to add bundles.