Skip to content

Commit e784f0e

Browse files
committed
81 - Fix resolveExtends including parent assets many times if any plugin uses AssetCompress
1 parent 22547fb commit e784f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AssetConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ protected function resolveExtends()
252252
if (!$parentConfig) {
253253
return $config;
254254
}
255-
$config['files'] = array_merge($parentConfig['files'], $config['files']);
256-
$config['filters'] = array_merge($parentConfig['filters'], $config['filters']);
255+
$config['files'] = array_unique(array_merge($parentConfig['files'], $config['files']));
256+
$config['filters'] = array_unique(array_merge($parentConfig['filters'], $config['filters']));
257257
$config['theme'] = $parentConfig['theme'] || $config['theme'];
258258
return $config;
259259
};

0 commit comments

Comments
 (0)