Skip to content

DynamicScriptServiceCollectionExtensions.AddCssBundling method (1 of 2)

Registers the default service types related to CSS bundling, including ICssBundleManager.

public static IServiceCollection AddCssBundling(this IServiceCollection collection)
parameter description
collection The service collection.

Return Value

The same service collection so that calls can be chained.

Exceptions

exception condition
ArgumentNullException collection is null.

See Also


DynamicScriptServiceCollectionExtensions.AddCssBundling method (2 of 2)

Registers the default service types related to CSS bundling, including ICssBundleManager.

public static void AddCssBundling(this IServiceCollection collection, 
    Action<CssBundlingOptions> setupAction)
parameter description
collection The service collection.
setupAction The action to edit options.

Exceptions

exception condition
ArgumentNullException collection or setupAction is null.

See Also