This package provides `.min.blade.php` file extension
astroshippers/laravel-minified-blade is a Laravel package for this package provides `.min.blade.php` file extension.
It currently has 3 GitHub stars and 386 downloads on Packagist (latest version v1.0.1).
Install it with composer require astroshippers/laravel-minified-blade.
Discover more Laravel packages by astroshippers
or browse all Laravel packages to compare alternatives.
Last updated
This package provides .min.blade.php file extension.
Just add the .min to your .blade.php, and the template will get minified! ⚡
composer require astroshippers/laravel-minified-blade
Let's use this file as an example.
<div>
@if($age > 13)
<p>
Welcome to your new account!
</p>
@else
<b>
Sorry, access denied.
</b>
@endif
</div>
Normally, without using this package it will be compiled into this:
<div>
<?php if($age > 13): ?>
<p>
Welcome to your new account!
</p>
<?php else: ?>
<b>
Sorry, access denied.
</b>
<?php endif; ?>
</div>
<?php /**PATH /home/asdf/code/notionmailer/resources/views/test.blade.php ENDPATH**/ ?>
But, if you add this package and use .min in your file extension, you will have the following result:
<div><?php if($age> 13): ?><p> Welcome to your new account! </p><?php else: ?><b> Sorry, access denied. </b><?php endif; ?></div><?php /**PATH /home/asdf/code/notionmailer/resources/views/test.min.blade.php ENDPATH**/ ?>
@minified and @endminified?Directives get executed after the template is rendered, which may add unwanted behavior such as your dynamic content spacing being minified.