PHP code example of oblik / kirby-vite

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

    

oblik / kirby-vite example snippets


<?= vite()->js('src/index.js') 

<?= vite()->css('src/index.js') 

return [
	'oblik.vite' => [
		'server' => [
			'port' => 5173,
			'https' => false,
		],
		'build' => [
			'outDir' => 'dist'
		]
	]
];