Skip to content

With the new release custom html code gets broken after minification #559

@trombitas

Description

@trombitas

I use html-minifier through grunt-contrib-htmlmin in a large project. Recently I observed that some existing code is breaking after minification:

<q r-center>
     <rf> ... </rf>
</q>

This is a html for my AngularJS application. The result of the minification is something like this:

<q r-center/>
<rf>..</rf>

Which is equivalent to this:

<q r-center></q>
<rf>..</rf>

Wich means the tag is pushed out from the Q tag. These tags are custom ones, there is no info regarding their type: block, inline, but the project does not need one. There are just tags.

Maybe this is an intended/normal behavior with this new version, and if so, I will need to get back to an earlier one or change the whole plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions