mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
feat: set flasher scripts and styles on top level config
This commit is contained in:
+10
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user