fahlisaputra/laravel-minify
A Laravel middleware package that minifies HTML, CSS, and JavaScript responses on the fly. Reduce page size and improve load times with simple configuration, optional caching, and support for custom minifier drivers—no build tools required.
composer require fahlisaputra/laravel-minify. For Laravel 13, use ^1.2.4, which added Laravel 13 support.php artisan vendor:publish --tag=laravel-minify (check the package README for the exact tag).bootstrap/app.php or app/Http/Kernel.php, depending on your Laravel version. For most apps, add it to the web middleware group so normal HTML responses are minified automatically.web group for site-wide HTML minification. This is the simplest day-to-day setup for marketing pages, blogs, and standard Blade apps.<pre>, <textarea>, inline SVG, and contenteditable areas carefully.^1.2.4; older releases may not declare compatibility.How can I help you explore Laravel packages today?