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.
- Host: GitHub
- URL: https://github.com/yamadashy/laravel-blade-minify-directive
- Owner: yamadashy
- License: mit
- Created: 2021-12-11T15:09:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-25T04:43:13.000Z (12 months ago)
- Last Synced: 2025-04-12T22:05:17.047Z (23 days ago)
- Topics: blade, blade-directives, directives, laravel, laravel-package, php
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Laravel Blade Minify Directive
@minify
directive to partially compress HTML.
# 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.