Skip to content

ScriptBundlingOptions class

namespace: Serenity.Web   assemblySerenity.Net.Web

Options for script bundling.

public class ScriptBundlingOptions : IOptions<ScriptBundlingOptions>

Public Members

name description
ScriptBundlingOptions() Initializes a new instance of the ScriptBundlingOptions class.
Bundles { get; } Gets the list of bundles and their contents.
Enabled { get; set; } Gets or sets whether script bundling is enabled.
Minimize { get; set; } Gets or sets the minimization flag. When true, script files are minified and their minified versions are used in bundles.
NoMinimize { get; set; } Gets or sets a list of relative paths to not minify.
Replacements { get; } Gets the replacement dictionary for placeholders in bundle contents, like {Development}.
UseMinJS { get; set; } Gets or sets whether a .min.js file that exists in the file system should be used if available, instead of minifying the file in memory.
Value { get; } Returns this object.
const SectionKey The default section key for this option class.

See Also