From 6d3ae050b344fdfd7a58ab0866227b783db12465 Mon Sep 17 00:00:00 2001 From: Bohdan Berezhniy Date: Mon, 18 Nov 2024 15:25:39 +0200 Subject: [PATCH] set correct condition --- Plugin/Deploy/Package/Bundle/RequireJsPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php b/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php index e27032c..4a49824 100644 --- a/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php +++ b/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php @@ -38,8 +38,8 @@ public function __construct( */ public function aroundAddFile(RequireJs $subject, callable $proceed, $filePath, $sourcePath, $contentType) { + $jsOptimization = $this->config->isEnabled() && $this->config->isBundlingOptimizationEnabled(); - $jsOptimization = $this->config->isBundlingEnabled() && $this->config->isEnabled(); if ($jsOptimization) { $allowedFiles = $this->getAllowedFiles();