/// <summary> /// Runs the JavaScript minifier on the content. /// </summary> public static IEnumerable <IAsset> MinifyJavaScript(this IEnumerable <IAsset> assets, CodeSettings settings) { return(assets.AddProcessor(asset => asset.MinifyJavaScript(settings))); }
/// <summary> /// Runs the CSS minifier on the content. /// </summary> public static IEnumerable <IAsset> MinifyCss(this IEnumerable <IAsset> assets, CssSettings settings) { return(assets.AddProcessor(asset => asset.MinifyCss(settings))); }
/// <summary> /// Adds the string content of all source files to the pipeline. /// </summary> public static IEnumerable <IAsset> Concatenate(this IEnumerable <IAsset> assets) { return(assets.AddProcessor(asset => asset.Concatenate())); }
/// <summary> /// Adds a fingerprint to local url() references. /// NOTE: Make sure to call Concatinate() before this method /// </summary> public static IEnumerable <IAsset> FingerprintUrls(this IEnumerable <IAsset> assets) { return(assets.AddProcessor(asset => asset.FingerprintUrls())); }
/// <summary> /// Adds a fingerprint to local url() references. /// NOTE: Make sure to call Concatinate() before this method /// </summary> public static IEnumerable <IAsset> InlineImages(this IEnumerable <IAsset> assets, int maxFileSize = 5120) { return(assets.AddProcessor(asset => asset.InlineImages(maxFileSize))); }
/// <summary> /// Throws an exception if any file doesn't match one of the specified file extensions. /// </summary> public static IEnumerable<IAsset> EnforceFileExtensions(this IEnumerable<IAsset> assets, params string[] extensions) { return assets.AddProcessor(asset => asset.EnforceFileExtensions()); }
/// <summary> /// Adds a fingerprint to local url() references. /// NOTE: Make sure to call Concatinate() before this method /// </summary> public static IEnumerable <IAsset> AddResponseHeader(this IEnumerable <IAsset> assets, string name, string value) { return(assets.AddProcessor(asset => asset.AddResponseHeader(name, value))); }
/// <summary> /// Adjusts the relative paths in CSS documents. /// </summary> public static IEnumerable <IAsset> AdjustRelativePaths(this IEnumerable <IAsset> assets) { return(assets.AddProcessor(asset => asset.AdjustRelativePaths())); }