Skip to content

Commit

Permalink
Update cssmin requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Singer committed Mar 8, 2018
1 parent ec11ef3 commit 3b4eca0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion PrettyMin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Wa72\HtmlPrettymin;

use JSMin\JSMin;
use tubalmartin\CssMin\Minifier as CSSmin;
use Symfony\Component\OptionsResolver\OptionsResolver;

/**
Expand Down Expand Up @@ -183,7 +184,7 @@ protected function minifyCss()
$code = $element->nodeValue;
$element->nodeValue = '';
if (trim($code)) {
$min = new \CSSmin();
$min = new CSSmin();
if (trim($code)) {
$code = trim($min->run($code));
}
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"type":"library",
"license":"MIT",
"require": {
"php": ">=5.4",
"mrclay/jsmin-php": "^2.3",
"tubalmartin/cssmin": "^2.4",
"tubalmartin/cssmin": "^4",
"symfony/options-resolver": ">=2.3"
},
"require-dev": {
Expand Down

0 comments on commit 3b4eca0

Please sign in to comment.