Skip to content

GetMinifiedFilename Method ​

Definition ​

  • Namespace: JASE.IO
  • Assembly: JASE.dll

Overloads ​

NameDescription
string GetMinifiedFilename(FileInfo fi)Resolves a minified or production variant of the specified file, if available.
string GetMinifiedFilename(string path)Resolves a minified or production variant of the specified file path, if available.

string GetMinifiedFilename(FileInfo fi) ​

csharp
string GetMinifiedFilename(FileInfo fi)

Resolves a minified or production variant of the specified file, if available.

Parameters ​

NameDescription
fiThe file to examine.

Returns ​

The full path to a .min or .prod variant of the file if one exists; otherwise the original file path.

string GetMinifiedFilename(string path) ​

csharp
string GetMinifiedFilename(string path)

Resolves a minified or production variant of the specified file path, if available.

Parameters ​

NameDescription
pathThe original file path (for example, "/scripts/app.js").

Returns ​

A path pointing to a .min or .prod variant of the file if one exists; otherwise the original path.