tje3d / html-minify
Minifies the HTML output of Laravel 5 applications (Originally from https://github.com/fitztrev/laravel-html-minify)
Requires
- php: >=5.6.0
- illuminate/support: 5.x
This package is not auto-updated.
Last update: 2024-12-08 05:08:47 UTC
README
This package is originally from https://github.com/fitztrev/laravel-html-minify i just updated the package and made it compatible with laravel 5
, And i forked and make it simple 😁
About
This package compresses the HTML output from your Laravel 5 application, seamlessly reducing the overall response size of your pages.
Other scripts that I've seen will compress the HTML output on-the-fly for each request. Instead, this package extends the Blade compiler to save the compiled template files to disk in their compressed state, reducing the overhead for each request.
Why?
Even with gzip enabled, there is still an improvement in the response size for HTML content-type documents.
Installation
- composer require tje3d/html-minify
- Add
Tje3d\HtmlMinify\HtmlMinifyServiceProvider::class
to the list of providers in config/app.php. - Publish your config with
php artisan vendor:publish
command - php artisan view:clear
Options
enabled
- boolean, default true