Skip to content

Not minify combination HTML + Javascript #182

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions