-1

I'm using symfony 2.7 then I want to minify my html code. is there a working bundle to do that?

I tried https://github.com/MatTheCat/HtmlCompressorBundle but I didn't see any change. Can you help me with that?

thanks

persia
  • 21
  • 4

1 Answers1

0

try this bundle . it's work fine

https://packagist.org/packages/sema/minifier-bundle

M. Hanafi
  • 66
  • 1
  • 11
  • thanks for your answer but it's specify symfony/framework-bundle: ~2.1 but I'm using 2.7 Are you sure it will be working? – persia Dec 25 '17 at 15:00
  • I tried then I got this error: **ContextErrorException in HTML.php line 239: Warning: call_user_func() expects parameter 1 to be a valid callback, class 'JSMinPlus' not found** – persia Dec 25 '17 at 15:20