This package helps to minify your project`s html (blade file) output.
You can install the package via composer:
composer require dipeshsukhia/laravel-html-minify
php artisan vendor:publish --tag=LaravelHtmlMinify
you should add middleware to your web middleware group within your app/Http/Kernel.php file:
use DipeshSukhia\LaravelHtmlMinify\Middleware\LaravelMinifyHtml;
LaravelMinifyHtml::class
add in env
for enable
HTML_MINIFY = true
for disable
HTML_MINIFY = false
for particular html part
LaravelHtmlMinifyFacade::htmlMinify("<div>...</div>");
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.