PHP code example of arbims / vite-plugin

1. Go to this page and download the library: Download arbims/vite-plugin 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/ */

    

arbims / vite-plugin example snippets


$this->loadHelper('VitePlugin.Vite');

<?= $this->Vite->assets('js/main.jsx', \Cake\Core\Configure::read('IS_DEV'), 'react') 

<?= $this->Vite->assets('js/main.js', \Cake\Core\Configure::read('IS_DEV'))