LaravelPackages.net
Acme Inc.
Toggle sidebar
0x1881/laravel-html-minify

laravel html minify with regex

196
1
2.4.1
About 0x1881/laravel-html-minify

0x1881/laravel-html-minify is a Laravel package for laravel html minify with regex. It currently has 1 GitHub stars and 196 downloads on Packagist (latest version 2.4.1). Install it with composer require 0x1881/laravel-html-minify. Discover more Laravel packages by 0x1881 or browse all Laravel packages to compare alternatives.

Last updated

Laravel HTML Minifier

This package helps to minify your project`s html (blade file) output.

Installation

You can install the package via composer:

composer require 0x1881/laravel-html-minify

Usage

Publish the config file if the defaults doesn't suite your needs:

php artisan vendor:publish --tag=LaravelHtmlMinify

The following config file will be published in config/laravel-html-minify.php

return [
    'enable' => env('LARAVEL_HTML_MINIFY', true),

    'skip_route' => [
        'dashboard',
        'dashboard.*',
    ],

    'skip_path' => [
        'admin',
        'admin/*',
    ],
];

You should add middleware to your web middleware group within your app/Http/Kernel.php file:

\C4N\LaravelHtmlMinify\Middlewares\LaravelHtmlMinify::class

Add in ENV

LARAVEL_HTML_MINIFY=true

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments