Skip to main content

BundleOptions

Customize JS/CSS/HTML bundles

Assembly: ServiceStack.Common.dll
View Source
Declaration
public class BundleOptions

Properties

Sources

List of file and directory sources to include in this bundle, directory sources must end in /. Sources can include prefixes to specify which Virtual File System Source to use, options: 'content:' (ContentRoot HostContext.VirtualFiles), 'filesystem:' (WebRoot FileSystem), 'memory:' (WebRoot Memory)

View Source
Declaration
public List<string> Sources { get; set; }

OutputTo

Write bundled file to this Virtual Path

View Source
Declaration
public string OutputTo { get; set; }

OutputWebPath

If needed, use alternative OutputTo Virtual Path in html tag

View Source
Declaration
public string OutputWebPath { get; set; }

PathBase

If needed, include PathBase prefix in output tag

View Source
Declaration
public string PathBase { get; set; }

Minify

Whether to minify sources in bundle (default true)

View Source
Declaration
public bool Minify { get; set; }

SaveToDisk

Whether to save to disk or Memory File System (default Memory)

View Source
Declaration
public bool SaveToDisk { get; set; }

Cache

Whether to return cached bundle if exists (default true)

View Source
Declaration
public bool Cache { get; set; }

Bundle

Whether to bundle and emit single or not bundle and emit multiple html tags

View Source
Declaration
public bool Bundle { get; set; }

RegisterModuleInAmd

Whether to call AMD define for CommonJS modules

View Source
Declaration
public bool RegisterModuleInAmd { get; set; }

IIFE

Whether to wrap JS scripts in an Immediately-Invoked Function Expression

View Source
Declaration
public bool IIFE { get; set; }