Documentation > CMS Template API Library > Util > MinifyJS(Asset)

MinifyJS

Minifier for JavaScript Uses UTF-8 to decode a binary JS file.

public System.String MinifyJS(Asset)


Returns

string of minified JavaScript. Check context.Error for error list.

Parameters

NameDescriptionType
jsAsset JavaScript file CrownPeak.CMSAPI.Asset

Connect with Crownpeak