PHP code example of nongbit / codeigniter-vite
1. Go to this page and download the library: Download nongbit/codeigniter-vite library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nongbit / codeigniter-vite example snippets
<?= vite()
<?= vite('admin')
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Vite extends BaseConfig
{
public string $publicPath = FCPATH;
public string $buildDirectory = '';
public string $devServerUrl = '';
public string $defaultEntry = 'app';
}
bash
php spark vite:setup