Laravel Blade compile with minify
blood72/laravel-blade-minify-compiler is a Laravel package for laravel blade compile with minify.
It currently has 2 GitHub stars and 1.378 downloads on Packagist (latest version v2.2.0).
Install it with composer require blood72/laravel-blade-minify-compiler.
Discover more Laravel packages by blood72
or browse all Laravel packages to compare alternatives.
Last updated
Laravel Blade Compiler with minify for personal use
Install using the composer.
composer require blood72/laravel-blade-minify-compiler
# enable/disable blade minifier (true/false)
BLADE_MINIFY_ENABLED=true
You can customize CSS, JS Minifier like under example.
// 'options' => [],
'options' => [
'cssMinifier' => [\Minify_CSSmin::class, 'minify'],
'jsMinifier' => function ($contents) { return \JSMin\JSMin::minify($contents); }, // you can use callback
],
You can publish config file.
php artisan vendor:publish --provider="Blood72\Minify\Compilers\BladeCompilerServiceProvider"
This package is open-sourced software licensed under the MIT license.