PHP code example of blood72 / laravel-blade-minify-compiler
1. Go to this page and download the library: Download blood72/laravel-blade-minify-compiler 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/ */
blood72 / laravel-blade-minify-compiler example snippets
// 'options' => [],
'options' => [
'cssMinifier' => [\Minify_CSSmin::class, 'minify'],
'jsMinifier' => function ($contents) { return \JSMin\JSMin::minify($contents); }, // you can use callback
],
bash
php artisan vendor:publish --provider="Blood72\Minify\Compilers\BladeCompilerServiceProvider"