Skip to content

Commit e3b4d36

Browse files
committed
Update minifier calls for mrclay/minify v3
1 parent 4ca0faf commit e3b4d36

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Manager.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,7 @@ protected function cssPipeline()
534534
{
535535
// If a custom minifier has been set use it, otherwise fallback to default
536536
$minifier = (isset($this->css_minifier)) ? $this->css_minifier : function ($buffer) {
537-
$min = new \CSSmin();
538-
return $min->run($buffer);
537+
return \Minify_CSSmin::minify($buffer);
539538
};
540539

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

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

0 commit comments

Comments
 (0)