searchturbine / phpwee-php-minifier

Open-source (BSD) PHP inline minifier functions for HTML, XHTML, HTML5, CSS 1-3 and Javascript. http://searchturbine.com/php/phpwee
Other
79 stars 46 forks source link

PHPWee\Minify::css() return empty string #21

Open martinb2 opened 7 years ago

martinb2 commented 7 years ago

Hello, Thank you for this great plugin. I have problem with method PHPWee\Minify::css(), it return empty string. Method for minimizing Javascript is functional. Any solutions for this?

Thank you

madlou commented 7 years ago

It also returns an empty string for me.

ashucg commented 7 years ago

Hi,

Adding PHPWee\ on lines 721, 1460, 1990 and 2007 in CssMin.php file fixed this issue for me. I have just created a pull request so you can check it there.

Thanks!

Beliar9x commented 7 years ago

I have same problem! Plz help me!

madlou commented 7 years ago

This repo seems almost dead @Beliar9x - Can I suggest that you just clone from @ashucg's repo:

https://github.com/ashucg/phpwee-php-minifier

I haven't tested it, but he has suggested that it is now fixed.

mirateam commented 4 years ago

PHPWee\Minify::css() not working for me.

ashucg commented 4 years ago

@mirateam see my comment - https://github.com/searchturbine/phpwee-php-minifier/issues/26#issuecomment-612539299