Skip to content

Commit b519a9e

Browse files
author
Renato Marinho
committed
Merge branch 'master' of github.com:renatomarinho/laravel-blade-minify
2 parents 975847e + 5597077 commit b519a9e

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Renato Marinho <renato.marinho@s2move.com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Laravel Blade Minify
2+
3+
[![Laravel 5.3](https://img.shields.io/badge/Laravel-5.3-brightgreen.svg?style=flat-square)](http://laravel.com)
4+
[![Laravel 5.4](https://img.shields.io/badge/Laravel-5.4-brightgreen.svg?style=flat-square)](http://laravel.com)
5+
[![Laravel 5.5](https://img.shields.io/badge/Laravel-5.5-brightgreen.svg?style=flat-square)](http://laravel.com)
6+
[![Total Downloads](https://poser.pugx.org/renatomarinho/laravel-blade-minify/downloads)](https://packagist.org/packages/renatomarinho/laravel-blade-minify)
7+
8+
### Simple package to minify HTML output on demand which results on a 35%+ optimization.
9+
10+
## Installation is easy
11+
12+
You can install the package via composer:
13+
14+
```bash
15+
$ composer require renatomarinho/laravel-blade-minify
16+
```
17+
18+
Next, the \RenatoMarinho\LaravelBladeMinify\Middleware\Minify::class - middleware must be registered in the kernel:
19+
20+
```php
21+
//app/Http/Kernel.php
22+
23+
protected $middleware = [
24+
...
25+
\RenatoMarinho\LaravelBladeMinify\Middleware\Minify::class
26+
]
27+
```
28+
29+
30+
#### Before
31+
32+
![Before of Laravel Blade Minify](https://i.imgur.com/cN3MWYh.png)
33+
34+
#### After
35+
36+
![After of Laravel Blade Minify](https://i.imgur.com/IKWKLkL.png)
37+
38+
39+
## License
40+
41+
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

0 commit comments

Comments
 (0)