Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fluent syntax for declaring bundles #55

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

Comments

Projects
None yet
1 participant
@Shazwazza
Copy link
Owner

Shazwazza commented Dec 19, 2016

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
You can’t perform that action at this time.