Skip to content

Instantly share code, notes, and snippets.

@2ik
Created July 14, 2018 07:33
Show Gist options
  • Save 2ik/5b918993921f7c17890e6ae67765c8a5 to your computer and use it in GitHub Desktop.
Save 2ik/5b918993921f7c17890e6ae67765c8a5 to your computer and use it in GitHub Desktop.
Минификация html в modx. На событие "OnWebPagePrerender" повесить плагин
<?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