Created
July 14, 2018 07:33
-
-
Save 2ik/5b918993921f7c17890e6ae67765c8a5 to your computer and use it in GitHub Desktop.
Минификация html в modx. На событие "OnWebPagePrerender" повесить плагин
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$output = $modx->resource->_output; | |
$output= preg_replace('|\s+|', ' ', $output); | |
$modx->resource->_output = $output; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment