Giter VIP home page Giter VIP logo

blade-minify's Introduction

Laravel Blade Minify

Laravel 5.3 Laravel 5.4 Laravel 5.5 Total Downloads

Simple package to minify HTML output on demand which results on a 35%+ optimization.

Packages backup from RenatoMarinho\laravel-page-speed. Because I Just need this packages simple not complete packages like RenatoMarinho\laravel-page-speed

Installation is easy

You can install the package via composer:

$ composer require ken/blade-minify

Next, the \Ken\BladeMinify\Middleware\Minify::class - middleware must be registered in the kernel:

//app/Http/Kernel.php

protected $middleware = [
    ...
    \Ken\BladeMinify\Middleware\Minify::class
]

Before

Before of Laravel Blade Minify

After

After of Laravel Blade Minify

License

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

blade-minify's People

Contributors

kenhyuwa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blade-minify's Issues

Error with DOMPDF

Hello, the library works perfect with the html, but when trying to export a file with DOMPDF the page goes blank, I took the boldness to alter the code with the following lines in the function html of the Minify middleware

captura
        

I hope you can solve it in a better way.
Greetings.

laravel 8 support

this error shows when i do composer require

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - ken/blade-minify[1.0.0, ..., 1.0.5] require illuminate/support 5.3.x|5.4.x|5.5.x -> found illuminate/support[v5.3.0, ..., 5.5.x-dev] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires ken/blade-minify ^1.0 -> satisfiable by ken/blade-minify[1.0.0, ..., 1.0.5].

can you update your composer.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.