Skip to content

Commit

Permalink
Update minifier calls for mrclay/minify v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Stolz committed Jan 30, 2020
1 parent 4ca0faf commit e3b4d36
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,7 @@ protected function cssPipeline()
{
// If a custom minifier has been set use it, otherwise fallback to default
$minifier = (isset($this->css_minifier)) ? $this->css_minifier : function ($buffer) {
$min = new \CSSmin();
return $min->run($buffer);
return \Minify_CSSmin::minify($buffer);
};

return $this->pipeline($this->css, '.css', $this->css_dir, $minifier);
Expand All @@ -550,7 +549,7 @@ protected function jsPipeline()
{
// If a custom minifier has been set use it, otherwise fallback to default
$minifier = (isset($this->js_minifier)) ? $this->js_minifier : function ($buffer) {
return \JSMin::minify($buffer);
return \JSMin\JSMin::minify($buffer);
};

return $this->pipeline($this->js, '.js', $this->js_dir, $minifier);
Expand Down

0 comments on commit e3b4d36

Please sign in to comment.