Skip to content

Commit 0b035d9

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

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ protected function _prepareLayout()
7474
/** @var \Magento\Framework\View\Asset\File $bundleAsset */
7575
if (!empty($bundleAssets) && $staticAsset !== false) {
7676
foreach ($bundleAssets as $bundleAsset) {
77-
$assetCollection->insert($bundleAsset->getFilePath(), $bundleAsset, RequireJsConfig::REQUIRE_JS_FILE_NAME);
77+
$assetCollection->insert(
78+
$bundleAsset->getFilePath(),
79+
$bundleAsset,
80+
RequireJsConfig::REQUIRE_JS_FILE_NAME
81+
);
7882
}
7983
$assetCollection->insert($staticAsset->getFilePath(), $staticAsset, RequireJsConfig::CONFIG_FILE_NAME);
8084
}

0 commit comments

Comments
 (0)