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
Type |
Name |
Description |
IBundleManager |
bundles |
|
SmidgeHelperAccessor |
smidge |
|
IHostingEnvironment |
hostingEnvironment |
|
IConfigManipulator |
configManipulator |
|
Microsoft.Extensions.Options.IOptions<RuntimeMinificationSettings> |
runtimeMinificationSettings |
|
CacheBusterResolver |
cacheBusterResolver |
|
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 |
Task<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 |
Task<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 |
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 |
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 |
Task<System.String> |
|