Skip to content

Commit 6d3ae05

Browse files
author
Bohdan Berezhniy
committed
set correct condition
1 parent 095ccff commit 6d3ae05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugin/Deploy/Package/Bundle/RequireJsPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public function __construct(
3838
*/
3939
public function aroundAddFile(RequireJs $subject, callable $proceed, $filePath, $sourcePath, $contentType)
4040
{
41+
$jsOptimization = $this->config->isEnabled() && $this->config->isBundlingOptimizationEnabled();
4142

42-
$jsOptimization = $this->config->isBundlingEnabled() && $this->config->isEnabled();
4343
if ($jsOptimization) {
4444
$allowedFiles = $this->getAllowedFiles();
4545

0 commit comments

Comments
 (0)