Skip to content

Commit

Permalink
Fixes excluding JS files from bundles when minifying is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
hostep committed Sep 7, 2019
1 parent 54244f7 commit 41ef34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Deploy/Service/Bundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private function isExcluded($filePath, $area, $theme)
$excludedFiles = $this->bundleConfig->getExcludedFiles($area, $theme);
foreach ($excludedFiles as $excludedFileId) {
$excludedFilePath = $this->prepareExcludePath($excludedFileId);
if ($excludedFilePath === $filePath) {
if ($excludedFilePath === $filePath || $excludedFilePath === str_replace('.min.js', '.js', $filePath)) {
return true;
}
}
Expand Down

0 comments on commit 41ef34f

Please sign in to comment.