Skip to content

Commit 6f1129a

Browse files
author
Maxim Medinskiy
committed
MAGETWO-35026: JS error on all pages if bundling and minification for js files enabled
1 parent 0b035d9 commit 6f1129a

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/RequireJs/Block/Html/Head

1 file changed

+1
-0
lines changed

app/code/Magento/RequireJs/Block/Html/Head/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ protected function _prepareLayout()
7373

7474
/** @var \Magento\Framework\View\Asset\File $bundleAsset */
7575
if (!empty($bundleAssets) && $staticAsset !== false) {
76+
$bundleAssets = array_reverse($bundleAssets);
7677
foreach ($bundleAssets as $bundleAsset) {
7778
$assetCollection->insert(
7879
$bundleAsset->getFilePath(),

0 commit comments

Comments
 (0)