Skip to content

Commit

Permalink
Use a better JS minifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Skirenko committed Dec 15, 2016
1 parent b139356 commit b3e840b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/content.precompile_assets_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public function build(array $context = array())
break;
case 'js':
//$output = self::MinifyJS(Pipeline::processJS($source_file_abs));
$output = Pipeline::processJS($source_file_abs);
require_once EXTENSIONS . '/asset_pipeline/lib/JSMin.php';
$output = JSMin::minify(Pipeline::processJS($source_file_abs));
break;
}
Pipeline::deleteCompiledFile($file); // Delete previous compilation, if any
Expand Down

0 comments on commit b3e840b

Please sign in to comment.