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();