re-enabled html minification, moved to raivisdejus/html-minifier

This commit is contained in:
2018-12-15 11:45:21 +01:00
parent 9e7874e81a
commit 69eb48d986

View File

@@ -214,7 +214,7 @@ class TemplateService
$path = $destDir.'/'.$name.'.'.$this->translator->getTranslator()->getLocale().'.html'; $path = $destDir.'/'.$name.'.'.$this->translator->getTranslator()->getLocale().'.html';
$html = $this->twig->render($template, $vars); $html = $this->twig->render($template, $vars);
//$html = $this->minifier->minify($html); $html = $this->minifier->minify($html);
if (!file_put_contents($path, $html)) { if (!file_put_contents($path, $html)) {
throw new \RuntimeException('Error writing output file: '.$path); throw new \RuntimeException('Error writing output file: '.$path);
} }