Skip to content

Not minify combination HTML + Javascript #182

@RohanVirtual

Description

@RohanVirtual

I have used minify function with all custom functions to minify my combination code which having HTML and Javascript logic in single file, but only HTML is minified not javascript code. I have set minify code given below :

                $htmlMin = new HtmlMin();
                $htmlMin->doRemoveComments(true);
                $htmlMin->doRemoveWhitespaceAroundTags(true);
                $htmlMin->doOptimizeAttributes(true);
                $htmlMin->doRemoveHttpPrefixFromAttributes(true);
                $htmlMin->doRemoveSpacesBetweenTags(true);
                $htmlContent = $htmlMin->minify($htmlContent);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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