blood72 / laravel-blade-minify-compiler
Laravel Blade compile with minify
Installs: 1 024
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.3
- blood72/blade-minify: ^1.4
- illuminate/view: ^7.0|^8.0|^9.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.15
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^8.5|^9.0
This package is auto-updated.
Last update: 2024-12-13 21:35:40 UTC
README
Laravel Blade Compiler with minify for personal use
Index
Requirement
- PHP >= 7.3
- Laravel ^7.0 | ^8.0 | ^9.0
- blood72/blade-minify ^1.4
Installation
Install using the composer.
composer require blood72/laravel-blade-minify-compiler
Configuration
# 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"
Reference
License
This package is open-sourced software licensed under the MIT license.