BundleBase T  MembersSquishIt API Documentation
The BundleBase T  type exposes the following members.
Methods

  NameDescription
Public methodAdd
Add a single file to a bundle.
Public methodAddDirectory
Add all files in a directory with extensions matching those known to bundle type. Defaults to include subfolders.
Public methodAddDynamic
Add dynamic (app-generated) content - the generated proxy file SignalR serves to clients is a good example.
Public methodAddEmbeddedResource
Add embedded resource.
Public methodAddMinified
Add a single file that has already been minified to a bundle. This will prevent the file from being minified again, a potential cause of bugs in combined file.
Public methodAddMinifiedDirectory
Add all files in a directory with extensions matching those known to bundle type. Defaults to include subfolders. All files found will be considered pre-minified.
Public methodAddMinifiedString(String)
Add pre-minified arbitrary content (not saved on disk).
Public methodAddMinifiedString(String, String)
Add pre-minified arbitrary content (not saved on disk) with the assumption that it is treated as if found in a given directory. This is useful for adding LESS content that needs to get imports relative to a particular location.
Public methodAddRemote(String, String)
Add a remote asset to bundle.
Public methodAddRemote(String, String, Boolean)
Add a remote asset to bundle.
Public methodAddRootEmbeddedResource
Add embedded resource in root namespace.
Public methodAddString(String)
Add arbitrary content that is not saved on disk.
Public methodAddString(String,  Object )
Add arbitrary content (not saved on disk) using string.Format to inject values.
Public methodAddString(String, String,  Object )
Add arbitrary content (not saved on disk) using string.Format to inject values.
Public methodAddString(String, String, String)
Add arbitrary content that is not saved on disk with the assumption that it is treated as if found in a given directory. This is useful for adding LESS content that needs to get imports relative to a particular location.
Public methodAsCached
Render bundle into cache and return tag.
Public methodAsNamed
Render bundle into the cache with a given name.
Public methodClearCache
Public methodForceDebug
Configure bundle to always render in debug mode (assets served separately and unminified).
Public methodForceDebugIf
Configure bundle to render in debug mode (assets served separately and unminified) if a precondition is met.
Public methodForceRelease
Configure bundle to always render in release mode (assets combined and minified).
Public methodHashKeyNamed
Configure bundle to use a specific name for cache-breaking parameter (only used with querystring invalidation).
Public methodRender
Render bundle to a file.
Public methodRenderCached
Render bundle from cache with a given name.
Public methodRenderCachedAssetTag
Render tag for a cached bundle.
Public methodRenderNamed
Render bundle with a given name.
Public methodRenderOnlyIfOutputFileMissing
Configure bundle to bypass writing to disk if the output file already exists.
Public methodWithAttribute
Include a given HTML attribute in rendered tag.
Public methodWithAttributes
Include a given HTML attribute in rendered tag.
Public methodWithCacheInvalidationStrategy
Configure bundle to use a non-standard cache invalidation strategy.
Public methodWithMinifier TMin  
Configure bundle to use a type other than the default minifier for given bundle type.
Public methodWithMinifier TMin (TMin)
Configure bundle to use a minifier instance.
Public methodWithOutputBaseHref
Configure bundle to prefix paths with given base URL - this is useful for cdn scenarios.
Public methodWithoutRevisionHash
Configure bundle to bypass cache invalidation.
Public methodWithoutTypeAttribute
Specify that a bundle should be rendered without type="" in the html tag.
Public methodWithPreprocessor
Configure bundle to use provided preprocessor instance.
Public methodWithReleaseFileRenderer
Configure bundle to use a non-standard file renderer. This is useful if you want combined files uploaded to a static server or CDN.
Back to Top
Properties

  NameDescription
Public propertyAssetCount
Retrieve number of assets included in bundle.
Back to Top
See Also