Fluent syntax for declaring bundles #55

Closed
Shazwazza opened this Issue Dec 19, 2016 · 0 comments

Projects

None yet

1 participant

@Shazwazza
Owner

Example

app.UseSmidge(bundles =>
{                
    bundles.Create("test-bundle-2", WebFileType.Js, "~/Js/Bundle2")
        .WithEnvironmentOptions(BundleEnvironmentOptions.Create()
                .ForDebug(builder => builder
                    .EnableCompositeProcessing()
                    .EnableFileWatcher()
                    .SetCacheBusterType<AppDomainLifetimeCacheBuster>()
                    .CacheControlOptions(enableEtag: false, cacheControlMaxAge: 0))
                .Build()
        );                
});
@Shazwazza Shazwazza added this to the 2.0 milestone Dec 19, 2016
@Shazwazza Shazwazza closed this Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment