Skip to content

[Feature] Minify output #10908

Open
Open
@lonix1

Description

@lonix1

It would be very helpful if the razor compiler would produce minified output.

The simplest approach would be to

  • remove whitespace between elements (e.g. convert double spaces to single space, trim trailing/leading spaces)
  • remove whitespace within attributes (e.g. class=" foo bar ")

A full-featured minifier can do much more than that - but I propose that the basics above would be good enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-compilerUmbrella for all compiler issuesfeature requestLarge improvement request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions