This package helps to minify your project`s html (blade file) output.
| Laravel | Package |
|---|---|
| 5.x to 9.x | 2.x |
| >= 10.x | 3.x |
You can install the package via composer:
composer require dipeshsukhia/laravel-html-minifyBecome a sponsor to Dipesh Sukhia .
php artisan vendor:publish --tag=LaravelHtmlMinify\DipeshSukhia\LaravelHtmlMinify\Middleware\LaravelMinifyHtml::classHTML_MINIFY=trueHTML_MINIFY=false'exclude_route' => [
// 'routeName'
]LaravelHtmlMinifyFacade::htmlMinify("<div>...</div>");LaravelHtmlMinifyFacade::excludeHtmlMinify("<div>...</div>");@excludeMinify
<div> exclude code from Minify </div>
@endExcludeMinifycomposer testPlease see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email dipesh.sukhia@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.