Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

htmlmin settings incomplete #1307

@JoernBerkefeld

Description

@JoernBerkefeld

it currently reads as follows for the htmlmin task:

    options: {
      collapseWhitespace: true,
      conservativeCollapse: true,
      collapseBooleanAttributes: true,
      removeCommentsFromCDATA: true
    }

that's quite insufficient because inline JS and CSS will stay as is, so will html comments. Instead the options should be set to:

    options: {
      removeComments: true, // **new**
      minifyJS: true, // **new**
      minifyCSS: true, // **new**
      collapseWhitespace: true,
      conservativeCollapse: true,
      collapseBooleanAttributes: true,
      removeCommentsFromCDATA: true
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions