Skip to content

Commit 41ef34f

Browse files
committed
Fixes excluding JS files from bundles when minifying is enabled.
1 parent 54244f7 commit 41ef34f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Deploy/Service/Bundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private function isExcluded($filePath, $area, $theme)
216216
$excludedFiles = $this->bundleConfig->getExcludedFiles($area, $theme);
217217
foreach ($excludedFiles as $excludedFileId) {
218218
$excludedFilePath = $this->prepareExcludePath($excludedFileId);
219-
if ($excludedFilePath === $filePath) {
219+
if ($excludedFilePath === $filePath || $excludedFilePath === str_replace('.min.js', '.js', $filePath)) {
220220
return true;
221221
}
222222
}

0 commit comments

Comments
 (0)