BundleOptions
Customize JS/CSS/HTML bundles
Assembly: ServiceStack.Common.dll
View Source
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
public List<string> Sources { get; set; }
OutputTo
Write bundled file to this Virtual Path
View Source
public string OutputTo { get; set; }
OutputWebPath
If needed, use alternative OutputTo Virtual Path in html tag
View Source
public string OutputWebPath { get; set; }
PathBase
If needed, include PathBase prefix in output tag
View Source
public string PathBase { get; set; }
Minify
Whether to minify sources in bundle (default true)
View Source
public bool Minify { get; set; }
SaveToDisk
Whether to save to disk or Memory File System (default Memory)
View Source
public bool SaveToDisk { get; set; }
Cache
Whether to return cached bundle if exists (default true)
View Source
public bool Cache { get; set; }
Bundle
Whether to bundle and emit single or not bundle and emit multiple html tags
View Source
public bool Bundle { get; set; }
RegisterModuleInAmd
Whether to call AMD define for CommonJS modules
View Source
public bool RegisterModuleInAmd { get; set; }
IIFE
Whether to wrap JS scripts in an Immediately-Invoked Function Expression
View Source
public bool IIFE { get; set; }