View Source
Class SmidgeRuntimeMinifier
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class SmidgeRuntimeMinifier : IRuntimeMinifier
Constructors
View Source
SmidgeRuntimeMinifier(IBundleManager, SmidgeHelperAccessor, IHostingEnvironment, IConfigManipulator, IOptions<RuntimeMinificationSettings>, CacheBusterResolver)
Declaration
public SmidgeRuntimeMinifier(IBundleManager bundles, SmidgeHelperAccessor smidge, IHostingEnvironment hostingEnvironment, IConfigManipulator configManipulator, IOptions<RuntimeMinificationSettings> runtimeMinificationSettings, CacheBusterResolver cacheBusterResolver)
Parameters
Properties
View Source
CacheBuster
Declaration
public string CacheBuster { get; }
Property Value
Type |
Description |
System.String |
|
Methods
View Source
CreateCssBundle(String, BundlingOptions, String[])
Declaration
public void CreateCssBundle(string bundleName, BundlingOptions bundleOptions, params string[] filePaths)
Parameters
Type |
Name |
Description |
System.String |
bundleName |
|
BundlingOptions |
bundleOptions |
|
System.String[] |
filePaths |
|
View Source
CreateJsBundle(String, BundlingOptions, String[])
Declaration
public void CreateJsBundle(string bundleName, BundlingOptions bundleOptions, params string[] filePaths)
Parameters
Type |
Name |
Description |
System.String |
bundleName |
|
BundlingOptions |
bundleOptions |
|
System.String[] |
filePaths |
|
View Source
GetCssAssetPathsAsync(String)
Declaration
public async Task<IEnumerable<string>> GetCssAssetPathsAsync(string bundleName)
Parameters
Type |
Name |
Description |
System.String |
bundleName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>> |
|
View Source
GetJsAssetPathsAsync(String)
Declaration
public async Task<IEnumerable<string>> GetJsAssetPathsAsync(string bundleName)
Parameters
Type |
Name |
Description |
System.String |
bundleName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>> |
|
View Source
MinifyAsync(String, AssetType)
Declaration
public async Task<string> MinifyAsync(string fileContent, AssetType assetType)
Parameters
Type |
Name |
Description |
System.String |
fileContent |
|
AssetType |
assetType |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
View Source
RenderCssHereAsync(String)
Declaration
public async Task<string> RenderCssHereAsync(string bundleName)
Parameters
Type |
Name |
Description |
System.String |
bundleName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
View Source
RenderJsHereAsync(String)
Declaration
public async Task<string> RenderJsHereAsync(string bundleName)
Parameters
Type |
Name |
Description |
System.String |
bundleName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
View Source
Reset()
Ensures that all runtime minifications are refreshed on next request. E.g. Clearing cache.
Declaration
[Obsolete("Invalidation is handled automatically. Scheduled for removal V11.")]
public void Reset()