CSSBundle MembersSquishIt API Documentation
The CSSBundle type exposes the following members.
Constructors

  NameDescription
Public methodCSSBundle 
Public methodCSSBundle(IDebugStatusReader)
Public methodCSSBundle(IDebugStatusReader, IFileWriterFactory, IFileReaderFactory, IDirectoryWrapper, IHasher, IBundleCache)
Back to Top
Methods

  NameDescription
Public methodAdd
Add a single file to a bundle.
(Inherited from BundleBase T .)
Public methodAddDirectory
Add all files in a directory with extensions matching those known to bundle type. Defaults to include subfolders.
(Inherited from BundleBase T .)
Public methodAddDynamic
Add dynamic (app-generated) content - the generated proxy file SignalR serves to clients is a good example.
(Inherited from BundleBase T .)
Public methodAddEmbeddedResource
Add embedded resource.
(Inherited from BundleBase T .)
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.
(Inherited from BundleBase T .)
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.
(Inherited from BundleBase T .)
Public methodAddMinifiedString(String)
Add pre-minified arbitrary content (not saved on disk).
(Inherited from BundleBase T .)
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.
(Inherited from BundleBase T .)
Public methodAddRemote(String, String)
Add a remote asset to bundle.
(Inherited from BundleBase T .)
Public methodAddRemote(String, String, Boolean)
Add a remote asset to bundle.
(Inherited from BundleBase T .)
Public methodAddRootEmbeddedResource
Add embedded resource in root namespace.
(Inherited from BundleBase T .)
Public methodAddString(String)
Add arbitrary content that is not saved on disk.
(Inherited from BundleBase T .)
Public methodAddString(String,  Object )
Add arbitrary content (not saved on disk) using string.Format to inject values.
(Inherited from BundleBase T .)
Public methodAddString(String, String,  Object )
Add arbitrary content (not saved on disk) using string.Format to inject values.
(Inherited from BundleBase T .)
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.
(Inherited from BundleBase T .)
Public methodAppendHashForAssets
Configure bundle to append versioning hash to asset reference URLs.
Public methodAsCached
Render bundle into cache and return tag.
(Inherited from BundleBase T .)
Public methodAsNamed
Render bundle into the cache with a given name.
(Inherited from BundleBase T .)
Public methodClearCache (Inherited from BundleBase T .)
Public methodForceDebug
Configure bundle to always render in debug mode (assets served separately and unminified).
(Inherited from BundleBase T .)
Public methodForceDebugIf
Configure bundle to render in debug mode (assets served separately and unminified) if a precondition is met.
(Inherited from BundleBase T .)
Public methodForceRelease
Configure bundle to always render in release mode (assets combined and minified).
(Inherited from BundleBase T .)
Public methodHashKeyNamed
Configure bundle to use a specific name for cache-breaking parameter (only used with querystring invalidation).
(Inherited from BundleBase T .)
Public methodProcessImports
Configure bundle to process CSS imports.
Public methodRender
Render bundle to a file.
(Inherited from BundleBase T .)
Public methodRenderCached
Render bundle from cache with a given name.
(Inherited from BundleBase T .)
Public methodRenderCachedAssetTag
Render tag for a cached bundle.
(Inherited from BundleBase T .)
Public methodRenderNamed
Render bundle with a given name.
(Inherited from BundleBase T .)
Public methodRenderOnlyIfOutputFileMissing
Configure bundle to bypass writing to disk if the output file already exists.
(Inherited from BundleBase T .)
Public methodWithAttribute
Include a given HTML attribute in rendered tag.
(Inherited from BundleBase T .)
Public methodWithAttributes
Include a given HTML attribute in rendered tag.
(Inherited from BundleBase T .)
Public methodWithCacheInvalidationStrategy
Configure bundle to use a non-standard cache invalidation strategy.
(Inherited from BundleBase T .)
Public methodWithMinifier TMin  
Configure bundle to use a type other than the default minifier for given bundle type.
(Inherited from BundleBase T .)
Public methodWithMinifier TMin (TMin)
Configure bundle to use a minifier instance.
(Inherited from BundleBase T .)
Public methodWithOutputBaseHref
Configure bundle to prefix paths with given base URL - this is useful for cdn scenarios.
(Inherited from BundleBase T .)
Public methodWithoutRevisionHash
Configure bundle to bypass cache invalidation.
(Inherited from BundleBase T .)
Public methodWithoutTypeAttribute
Specify that a bundle should be rendered without type="" in the html tag.
(Inherited from BundleBase T .)
Public methodWithPreprocessor
Configure bundle to use provided preprocessor instance.
(Inherited from BundleBase T .)
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.
(Inherited from BundleBase T .)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodMvcRender (Defined by CSSBundleExtensions.)
Public Extension MethodMvcRenderCachedAssetTag (Defined by CSSBundleExtensions.)
Public Extension MethodMvcRenderNamed (Defined by CSSBundleExtensions.)
Public Extension MethodRenderMvc (Defined by CSSBundleExtensions.)
Back to Top
Properties

  NameDescription
Public propertyAssetCount
Retrieve number of assets included in bundle.
(Inherited from BundleBase T .)
Back to Top
See Also