protected function minifyJsAsset($asset)
{
$contents = $asset->contents;
if ($this->settings->minifyJsEnabled) {
$contents = \JSMin::minify($asset->contents);
}
// Play nice with others by ensuring a semicolon at eof
if (substr($contents, -1) != ';') {
$contents .= ';';
}
return $contents;
}