hidehalo/laravel-view-shrinker

Laravel framework view shrinker

8.0.0 2021-05-28 02:29 UTC

This package is auto-updated.

Last update: 2021-11-28 03:34:21 UTC


README

English|中文

What is?

Laravel view shrinker is a simple but effective laravel framework extension package.

It provider a view compiler,it would performs compression operations similar to twig's %spaceless function when compile&caching Blade views.

Thus completing %spaceless function at compile time to avoiding reading larger files of cache at runtime, it's helpful to enhance speed of view rendering.

How to

Install

composer install "hidehalo/laravel-view-shrinker"

Usage

Laravel will automatically register its service provider, override the default blade compiler, there have no more additional configuration.

Testing

./vendor/bin/test

License

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