The BundleBase T type exposes the following members.
Back to Top
Back to Top
Methods
Name | Description | |
---|---|---|
![]() | Add |
Add a single file to a bundle.
|
![]() | AddDirectory |
Add all files in a directory with extensions matching those known to bundle type. Defaults to include subfolders.
|
![]() | AddDynamic |
Add dynamic (app-generated) content - the generated proxy file SignalR serves to clients is a good example.
|
![]() | AddEmbeddedResource |
Add embedded resource.
|
![]() | AddMinified |
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.
|
![]() | AddMinifiedDirectory |
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.
|
![]() | AddMinifiedString(String) |
Add pre-minified arbitrary content (not saved on disk).
|
![]() | AddMinifiedString(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.
|
![]() | AddRemote(String, String) |
Add a remote asset to bundle.
|
![]() | AddRemote(String, String, Boolean) |
Add a remote asset to bundle.
|
![]() | AddRootEmbeddedResource |
Add embedded resource in root namespace.
|
![]() | AddString(String) |
Add arbitrary content that is not saved on disk.
|
![]() | AddString(String, Object ) |
Add arbitrary content (not saved on disk) using string.Format to inject values.
|
![]() | AddString(String, String, Object ) |
Add arbitrary content (not saved on disk) using string.Format to inject values.
|
![]() | AddString(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.
|
![]() | AsCached |
Render bundle into cache and return tag.
|
![]() | AsNamed |
Render bundle into the cache with a given name.
|
![]() | ClearCache | |
![]() | ForceDebug |
Configure bundle to always render in debug mode (assets served separately and unminified).
|
![]() | ForceDebugIf |
Configure bundle to render in debug mode (assets served separately and unminified) if a precondition is met.
|
![]() | ForceRelease |
Configure bundle to always render in release mode (assets combined and minified).
|
![]() | HashKeyNamed |
Configure bundle to use a specific name for cache-breaking parameter (only used with querystring invalidation).
|
![]() | Render |
Render bundle to a file.
|
![]() | RenderCached |
Render bundle from cache with a given name.
|
![]() | RenderCachedAssetTag |
Render tag for a cached bundle.
|
![]() | RenderNamed |
Render bundle with a given name.
|
![]() | RenderOnlyIfOutputFileMissing |
Configure bundle to bypass writing to disk if the output file already exists.
|
![]() | WithAttribute |
Include a given HTML attribute in rendered tag.
|
![]() | WithAttributes |
Include a given HTML attribute in rendered tag.
|
![]() | WithCacheInvalidationStrategy |
Configure bundle to use a non-standard cache invalidation strategy.
|
![]() | WithMinifier TMin |
Configure bundle to use a type other than the default minifier for given bundle type.
|
![]() | WithMinifier TMin (TMin) |
Configure bundle to use a minifier instance.
|
![]() | WithOutputBaseHref |
Configure bundle to prefix paths with given base URL - this is useful for cdn scenarios.
|
![]() | WithoutRevisionHash |
Configure bundle to bypass cache invalidation.
|
![]() | WithoutTypeAttribute |
Specify that a bundle should be rendered without type="" in the html tag.
|
![]() | WithPreprocessor |
Configure bundle to use provided preprocessor instance.
|
![]() | WithReleaseFileRenderer |
Configure bundle to use a non-standard file renderer. This is useful if you want combined files uploaded to a static server or CDN.
|
Properties
Name | Description | |
---|---|---|
![]() | AssetCount |
Retrieve number of assets included in bundle.
|
See Also