feat: set flasher scripts and styles on top level config

This commit is contained in:
Khoubza Younes
2023-06-05 22:58:24 +01:00
parent 185e0ffd54
commit 4d62fa3548
66 changed files with 458 additions and 106 deletions
+10
View File
@@ -25,6 +25,16 @@ foreach ($plugins as $plugin) {
$content = file_get_contents($script);
file_put_contents($path, $content);
}
$styles = $plugin->getStyles();
foreach ($styles['cdn'] as $index => $script) {
echo $script . PHP_EOL;
$path = $plugin->getAssetsDir() . '/'. pathinfo($script, PATHINFO_BASENAME);
$content = file_get_contents($script);
file_put_contents($path, $content);
}
}
echo 'DONE' . PHP_EOL;