Adds separate call for css assets

This commit is contained in:
Bjarke Berg
2021-04-15 09:52:55 +02:00
parent 03002e16d3
commit f1dbf6584b
5 changed files with 21 additions and 12 deletions

View File

@@ -60,13 +60,22 @@ namespace Umbraco.Cms.Core.WebAssets
Task<string> RenderJsHereAsync(string bundleName);
/// <summary>
/// Returns the asset paths for the bundle name
/// Returns the asset paths for the JS bundle name
/// </summary>
/// <param name="bundleName"></param>
/// <returns>
/// If debug mode is enabled this will return all asset paths (not bundled), else it will return a bundle URL
/// </returns>
Task<IEnumerable<string>> GetAssetPathsAsync(string bundleName);
Task<IEnumerable<string>> GetJsAssetPathsAsync(string bundleName);
/// <summary>
/// Returns the asset paths for the css bundle name
/// </summary>
/// <param name="bundleName"></param>
/// <returns>
/// If debug mode is enabled this will return all asset paths (not bundled), else it will return a bundle URL
/// </returns>
Task<IEnumerable<string>> GetCssAssetPathsAsync(string bundleName);
/// <summary>
/// Minify the file content, of a given type