Giter Club home page Giter Club logo

html-minify's Introduction

Hi there! 👋

I'm Yocsel Mendoza, a software engineer with a passion for building web applications that are optimized for performance and user experience. Currently, I'm working at Workvivo as a software engineer, where I'm responsible for developing and maintaining the platform's frontend and backend components.

In the past, I worked on vtutor.com, an e-commerce/e-learning platform that utilized ReactJS and GatsbyJS for the frontend and serverless functions, Lambda, and NodeJS for the APIs. For vtutor.com, I focused heavily on asset optimization to provide the fastest response to our users, especially on mobile devices. By leveraging serverless technology and various services, including a Content Delivery Network (CDN), we were able to deliver exceptional performance to our users. Additionally, I was responsible for integrating PayPal and Stripe as our payment processors.

You can find me on various platforms:

Feel free to connect with me!

html-minify's People

Contributors

yocmen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

html-minify's Issues

App environment support

Hello!
This is nice and useful Laravel package, but there's one missing thing.

You should create environment support. For example, in config file add attribute 'production'. If it's set to true, then minify HTML only on production environment.

When using package on local environment, it is a bit jumpy, because I can't debug if something is wrong, etc. When I want to deploy my app on environment server, sometimes I even forget to re-enable this functionality in config, so it causes slower app load.

Collapses white spaces

html-minify collapses white spaces in many places, I don't see the patern, but the regexp that is behind has to be faulty.
To recreate the bug I would suggest to copy the html code from some big web pages, minify it and then compare the resulting minified HTML interpreted by a browser with the original one.

Undefined Method

I get this error:

FatalThrowableError in HtmlMinifyCompiler.php line 21:
Call to undefined method Yocmen\HtmlMinify\HtmlMinifyCompiler::setRawTags()

However, if I comment these line:

$this->setRawTags(
    $this->_config['blade']['rawTags'][0],
    $this->_config['blade']['rawTags'][1]
);
$this->setContentTags(
    $this->_config['blade']['contentTags'][0],
    $this->_config['blade']['contentTags'][1]
);

$this->setEscapedContentTags(
    $this->_config['blade']['escapedContentTags'][0],
    $this->_config['blade']['escapedContentTags'][1]
);

It works. Any idea?

I'm using Laravel 5.4.

Not working

Hello,
I tried this package with 2 laravel 5 projects and somehow its not working with either of them.
Is there any way to debug?

Regards

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.