Skip to content

Commit 8761935

Browse files
author
Bohdan Korablov
committed
MAGETWO-87619: Add ability minify html when SCD on demand in production is enabled
1 parent b2fbf75 commit 8761935

File tree

1 file changed

+2
-3
lines changed
  • lib/internal/Magento/Framework/View/Design/FileResolution/Fallback

1 file changed

+2
-3
lines changed

lib/internal/Magento/Framework/View/Design/FileResolution/Fallback/TemplateFile.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ public function getFile($area, ThemeInterface $themeModel, $file, $module = null
108108
private function getMinifiedTemplateInProduction($template)
109109
{
110110
if ($this->deploymentConfig->getConfigData(
111-
ConfigOptionsListConstants::CONFIG_PATH_SCD_ON_DEMAND_IN_PRODUCTION
112-
)
113-
) {
111+
ConfigOptionsListConstants::CONFIG_PATH_SCD_ON_DEMAND_IN_PRODUCTION
112+
)) {
114113
return $this->templateMinifier->getMinified($template);
115114
}
116115
return $this->templateMinifier->getPathToMinified($template);

0 commit comments

Comments
 (0)