PHP code example of johannschopplich / kirby-hashed-assets
1. Go to this page and download the library: Download johannschopplich/kirby-hashed-assets 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/ */
johannschopplich / kirby-hashed-assets example snippets
<?= js('assets/js/main.js')
<?= js('@template')
<?= js('assets/js/main.js')
<link rel="preload" href="<?= hashedUrl('assets/css/templates/default.css')
<link rel="modulepreload" href="<?= hashedUrl('assets/js/templates/home.js')