mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 04:51:17 +00:00
43 lines
1.0 KiB
PHP
43 lines
1.0 KiB
PHP
<?php
|
|
|
|
// app/Config/Vite.php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Config;
|
|
|
|
use CodeIgniterVite\Config\Vite as ViteConfig;
|
|
|
|
class Vite extends ViteConfig
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$adminGateway = config('Admin')
|
|
->gateway;
|
|
$installGateway = config('Install')
|
|
->gateway;
|
|
|
|
$this->routesAssets = [
|
|
[
|
|
'routes' => ['*'],
|
|
'exclude' => [$adminGateway . '*', $installGateway . '*'],
|
|
'assets' => ['styles/site.css', 'js/app.ts', 'js/podcast.ts', 'js/audio-player.ts'],
|
|
],
|
|
[
|
|
'routes' => ['/map'],
|
|
'assets' => ['js/map.ts'],
|
|
],
|
|
[
|
|
'routes' => ['/' . $adminGateway . '*'],
|
|
'assets' => ['styles/admin.css', 'js/admin.ts', 'js/admin-audio-player.ts'],
|
|
],
|
|
[
|
|
'routes' => [$installGateway . '*'],
|
|
'assets' => ['styles/install.css'],
|
|
],
|
|
];
|
|
}
|
|
}
|