Skip to content

How to minify and merge stylesheets #26

Description

@lowpez

Hello guys,
Thank you for taking the time to pay attention and help me to solve these questions.
This is the code i'm using for minify my html:

function sanitize_output($buffer) {
     require_once ("phpwee-php-minifier/phpwee.php");
     return  PHPWee\Minify::html($buffer);
}

1º How can I minimize directly on these tags? . An example code i'll be great.

<link rel="stylesheet" href="css/style1.css">
<link rel="stylesheet" href="css/style2.css">

2º it possible to merge style1.css and style2.css in a single file/call?
Greetings!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions