re-enabled html minification, moved to raivisdejus/html-minifier
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user