An open API service indexing awesome lists of open source software.

https://github.com/yamadashy/laravel-blade-minify-directive

@minify directive to partially compress HTML.
https://github.com/yamadashy/laravel-blade-minify-directive

blade blade-directives directives laravel laravel-package php

Last synced: 23 days ago
JSON representation

@minify directive to partially compress HTML.

Awesome Lists containing this project

README

        


Laravel Blade Minify Directive


@minify directive to partially compress HTML.




Downloads
Test Status
Latest Version
License

# Motivation
There are various minify libraries available, all of which minify the entire page.
However, minifying the whole page may break the design, making it difficult to implement in a large project.

If you want to apply it to a part of the page instead of the whole page, this library is useful.

# Installation
You can install the package via composer:
```
composer require yamadashy/laravel-blade-minify-directive
```

# Usage

Enclose the part you want to minify with `@minify` and `@endminify`.
```blade




not minified



@minify



minified



@endminify

not minified


```

Converted like this.
```html




not minified



minified


not minified


```

# License
Distributed under the MIT License. See `LICENSE.txt` for more information.