Commit 1181b7b9 by Paul Klimov

AssetController has been fixed to override 'js' and 'css' for compressed bundles.

parent 3a75c69b
...@@ -381,9 +381,11 @@ class AssetController extends Controller ...@@ -381,9 +381,11 @@ class AssetController extends Controller
{ {
$array = []; $array = [];
foreach ($targets as $name => $target) { foreach ($targets as $name => $target) {
foreach (['js', 'css', 'depends', 'basePath', 'baseUrl'] as $prop) { foreach (['basePath', 'baseUrl', 'js', 'css', 'depends'] as $prop) {
if (!empty($target->$prop)) { if (!empty($target->$prop)) {
$array[$name][$prop] = $target->$prop; $array[$name][$prop] = $target->$prop;
} elseif (in_array($prop, ['js', 'css'])) {
$array[$name][$prop] = [];
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment