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